io

package
v0.75.0-preview.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 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