Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyNFull ¶ added in v0.2.0
CopyNFull does the same as io.CopyN, but it returns io.ErrUnexpectedEOF if CopyN returns io.EOF and the number of bytes written greater than zero.
func NewCountingReader ¶
func NewCountingReader(reader io.Reader, count *int64) io.ReadCloser
NewCountingReader wraps the given reader in a reader that ensures the given count variable is atomically updated whenever data is read.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.