streams

package
v0.0.0-...-947b840 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockEmptyStreams

func MockEmptyStreams(t *testing.T) *streams

func MockStreams

func MockStreams(t *testing.T) *streams

func MockTerminalStreams

func MockTerminalStreams(t *testing.T) *streams

Types

type InputStream

type InputStream interface {
	File() *os.File
	IsTerminal() bool
}

type OutputStream

type OutputStream interface {
	File() *os.File
	IsTerminal() bool
	Columns() int
}

type Streams

type Streams interface {
	Out() OutputStream
	Err() OutputStream
	In() InputStream
}

func StandardStreams

func StandardStreams() Streams

Jump to

Keyboard shortcuts

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