nio

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdStreams

type StdStreams struct {
	In     io.Reader
	Out    io.Writer
	ErrOut io.Writer
}

StdStreams provides the standard names for io-streams. This is useful for embedding and for unit testing.

func NewTestIOStreams

func NewTestIOStreams() (StdStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer)

NewTestIOStreams returns a valid StdStreams and in, out, errOut buffers for unit tests

func NewTestIOStreamsDiscard

func NewTestIOStreamsDiscard() StdStreams

NewTestIOStreamsDiscard returns a valid StdStreams that just discards

Jump to

Keyboard shortcuts

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