Documentation
¶
Overview ¶
Package iohelpers provides basic extensions to the helpers provided by the Go stdlib "io" module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountingReader ¶
CountingReader is an io.Reader wrapper that counts how many bytes were read from the underlying io.Reader.
func CountReader ¶
func CountReader(rdr io.Reader) *CountingReader
CountReader returns a new *CountingReader that wraps the given io.Reader.
func (CountingReader) BytesRead ¶
func (c CountingReader) BytesRead() int64
BytesRead returns the number of bytes read so far from the reader. This is just shorthand for c.N.
Click to show internal directories.
Click to hide internal directories.