io

package
v0.0.0-...-f6bc33c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 1 Imported by: 0

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.

func (*CountWriter) Write

func (w *CountWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL