lotus/lib/nullreader/reader.go

11 lines
150 B
Go
Raw Normal View History

2020-02-27 00:54:39 +00:00
package nullreader
type Reader struct{}
func (Reader) Read(out []byte) (int, error) {
for i := range out {
out[i] = 0
}
return len(out), nil
}