file

package
v0.0.0-...-27b3d77 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountingWriter

type CountingWriter struct {
	// contains filtered or unexported fields
}

func NewCountingWriter

func NewCountingWriter(w io.Writer) *CountingWriter

New creates a new writer that wraps w. The wrapping writer counts the number of bytes written to the wrapped writer.

func (*CountingWriter) BytesWritten

func (w *CountingWriter) BytesWritten() int64

BytesWritten returns the number of bytes that were written to the wrapped writer.

func (*CountingWriter) SetWritten

func (w *CountingWriter) SetWritten(size int64)

func (*CountingWriter) Write

func (w *CountingWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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