iostreams

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StreamsKey = Key{}

StreamsKey is a global instance of the Key type

Functions

This section is empty.

Types

type IOStreams

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

func GetOSIOStreams

func GetOSIOStreams() *IOStreams

Get a singleton instance of the OS IOStreams

func NewOSIOStreams

func NewOSIOStreams() *IOStreams

Build a new instance of the OS IOStreams

func NewTestIOStreams

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

func NewTestIOStreamsOnly

func NewTestIOStreamsOnly() *IOStreams

type Key

type Key struct{}

Empty type to represent the _type_ IOStreams . Genesis is to support a key in a Context

Jump to

Keyboard shortcuts

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