18 lines
203 B
Go
18 lines
203 B
Go
|
package io
|
||
|
|
||
|
import "io"
|
||
|
|
||
|
type nopReader bool
|
||
|
|
||
|
func (nopReader) Read(p []byte) (int, error) {
|
||
|
return 0, io.EOF
|
||
|
}
|
||
|
|
||
|
func (nopReader) Close() (error) {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
NopReader nopReader = false
|
||
|
)
|