amuz.es/src/infra/goutils@v0.1.3/io/reader.go (about)

     1  package io
     2  
     3  import "io"
     4  
     5  type nopReader bool
     6  
     7  func (nopReader) Read(p []byte) (int, error) {
     8  	return 0, io.EOF
     9  }
    10  
    11  func (nopReader) Close() (error) {
    12  	return nil
    13  }
    14  
    15  const (
    16  	NopReader nopReader = false
    17  )