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