Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinimumReader ¶
type MinimumReader struct {
// contains filtered or unexported fields
}
MinimumReader is the implementation for MinReader.
func MinReader ¶
func MinReader(r io.Reader, minNumberOfBytesToRead int64) *MinimumReader
MinReader reads from the reader but ensures there is at least N bytes read from the reader. The reader should call Close() when they are done reading. Closing the MinReader will read and discard any unread bytes up to minNumberOfBytesToRead. CLosing the MinReader does NOT close the underlying reader. The underlying implementation is a MinimumReader, which implements ReaderCloser.
func (*MinimumReader) Close ¶
func (r *MinimumReader) Close() error
Close does not close the underlying reader, only the MinimumReader
Click to show internal directories.
Click to hide internal directories.