Documentation ¶
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
}
CountWriter is an io.Writer that keeps track of the number of bytes written to it.
func NewCountWriter ¶
func NewCountWriter(w io.Writer) *CountWriter
func (*CountWriter) Count ¶
func (w *CountWriter) Count() int64
Count returns the total number of bytes written to the writer.
Click to show internal directories.
Click to hide internal directories.