Documentation
¶
Overview ¶
Package files implements io/fs objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountWriter ¶
type CountWriter struct {
// contains filtered or unexported fields
}
CountWriter counts bytes written through it. It is safe for concurrent Count/Reset; Write is as safe as the wrapped Writer.
func NewCountWriter ¶
func NewCountWriter(w io.Writer) *CountWriter
NewCountWriter wraps w (use nil if you want to drop data).
func (*CountWriter) Count ¶
func (cw *CountWriter) Count() uint64
Count returns the total bytes written.
Click to show internal directories.
Click to hide internal directories.