11 lines
150 B
Go
11 lines
150 B
Go
|
package nullreader
|
||
|
|
||
|
type Reader struct{}
|
||
|
|
||
|
func (Reader) Read(out []byte) (int, error) {
|
||
|
for i := range out {
|
||
|
out[i] = 0
|
||
|
}
|
||
|
return len(out), nil
|
||
|
}
|