12 lines
219 B
Go
12 lines
219 B
Go
package nullreader
|
|
|
|
// TODO: extract this to someplace where it can be shared with lotus
|
|
type Reader struct{}
|
|
|
|
func (Reader) Read(out []byte) (int, error) {
|
|
for i := range out {
|
|
out[i] = 0
|
|
}
|
|
return len(out), nil
|
|
}
|