Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader counts the bytes read through it.
func NewLimited ¶
NewLimited makes a new Reader that counts the bytes read through it.
When maxBytes bytes are read, the next read will return io.EOF even though the underlying reader has more data.
Click to show internal directories.
Click to hide internal directories.