Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLimitExceeded = errors.New("write limit exceeded")
ErrLimitExceeded is returned when the write limit is exceeded.
Functions ¶
This section is empty.
Types ¶
type LimitedWriter ¶
LimitedWriter is a writer that writes to an underlying writer up to a limit.
func LimitWriter ¶
func LimitWriter(w io.Writer, limit int64) *LimitedWriter
LimitWriter returns a new LimitWriter that writes to w.
parameters: w: the writer to write to limit: the maximum number of bytes to write
Click to show internal directories.
Click to hide internal directories.