Documentation
¶
Overview ¶
Package countwriter is a package for a writer that counts the number of bytes written to it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountWriter ¶
type CountWriter struct {
// contains filtered or unexported fields
}
A CountWriter is a writer that passes data through to the underlying writer and counts the number of bytes written to it.
func NewWriter ¶
func NewWriter(w io.Writer) *CountWriter
func (*CountWriter) Count ¶
func (c *CountWriter) Count() uint64
Click to show internal directories.
Click to hide internal directories.