lotus/lib/nullreader/reader.go
2020-02-27 01:56:09 +01:00

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
}