Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTruncatedCopy = errors.New("truncated copy due to too large input")
ErrTruncatedCopy is raised when the copy is larger than expected.
Functions ¶
func LimitCopy ¶ added in v2.1.4
LimitCopy uses a buffered CopyN and a hardlimit to stop read from the reader when the maxSize amount of data has been written to the given writer and raise an error.
func NopCloserWriter ¶
func NopCloserWriter(w io.Writer) io.WriteCloser
NopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.