Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterReader ¶
type CounterReader struct {
// contains filtered or unexported fields
}
CounterReader wraps an io.ReadCloser and counts the bytes read.
func NewCounterReader ¶
func NewCounterReader(rc io.ReadCloser) *CounterReader
NewCounterReader creates a new CounterReader.
func (*CounterReader) Close ¶
func (cr *CounterReader) Close() error
Close closes the wrapped io.ReadCloser.
func (*CounterReader) Count ¶
func (cr *CounterReader) Count() int64
Count returns the total number of bytes read.
Click to show internal directories.
Click to hide internal directories.