ioutil

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitWriter added in v1.2.1

type LimitWriter struct {
	W io.Writer
	N int // bytes remaining that can be written
	D int // bytes dropped so far
}

LimitWriter is a writer that limits the number of bytes written to it.

func (*LimitWriter) Write added in v1.2.1

func (l *LimitWriter) Write(p []byte) (rnw int, err error)

type LinePrefixer added in v1.2.1

type LinePrefixer struct {
	W io.Writer

	Prefix []byte
	// contains filtered or unexported fields
}

LinePrefixer is a writer that prefixes each line written to it with a prefix.

func (*LinePrefixer) Close added in v1.2.1

func (l *LinePrefixer) Close() error

func (*LinePrefixer) Write added in v1.2.1

func (l *LinePrefixer) Write(p []byte) (n int, err error)

type SynchronizedWriter added in v1.0.0

type SynchronizedWriter struct {
	Mu sync.Mutex
	W  io.Writer
}

func (*SynchronizedWriter) Write added in v1.0.0

func (w *SynchronizedWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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