gatedwriter

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MPL-2.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 Writer

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

Writer is an io.Writer implementation that buffers all of its data into an internal buffer until it is told to let data through.

func NewWriter

func NewWriter(underlying io.Writer) *Writer

func (*Writer) Flush

func (w *Writer) Flush() error

Flush tells the Writer to flush any buffered data and to stop buffering.

func (*Writer) Write

func (w *Writer) 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