Files
poseidon/util/util.go
2021-06-23 11:04:19 +02:00

11 lines
250 B
Go

package util
// NullReader is a struct that implements the io.Reader interface and returns nothing when reading
// from it.
type NullReader struct{}
func (r NullReader) Read(_ []byte) (int, error) {
// An empty select blocks forever.
select {}
}