Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLimitReached = xerrors.Errorf("i/o limit reached")
Functions ¶
This section is empty.
Types ¶
type LimitWriter ¶
LimitWriter will only write bytes to the underlying writer until the limit is reached.
func NewLimitWriter ¶
func NewLimitWriter(w io.Writer, n int64) *LimitWriter
Click to show internal directories.
Click to hide internal directories.