Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountingReader ¶
type CountingReader struct {
// contains filtered or unexported fields
}
CountingReader implements a io.Reader that counts bytes.
func NewCountingReader ¶
func NewCountingReader(r io.Reader) *CountingReader
NewCountingReader initializes a new CountingReader.
func (*CountingReader) Count ¶
func (c *CountingReader) Count() int64
Count returns the number of bytes read.
Click to show internal directories.
Click to hide internal directories.