iostreams

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOStreams

type IOStreams struct {
	In     io.ReadCloser
	Out    io.Writer
	ErrOut io.Writer
	// contains filtered or unexported fields
}

func System

func System() *IOStreams

func Test

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

func (*IOStreams) ColorEnabled

func (s *IOStreams) ColorEnabled() bool

func (*IOStreams) IsStderrTTY added in v0.11.1

func (s *IOStreams) IsStderrTTY() bool

func (*IOStreams) IsStdinTTY added in v0.11.1

func (s *IOStreams) IsStdinTTY() bool

func (*IOStreams) IsStdoutTTY added in v0.11.1

func (s *IOStreams) IsStdoutTTY() bool

func (*IOStreams) SetStderrTTY added in v0.11.1

func (s *IOStreams) SetStderrTTY(isTTY bool)

func (*IOStreams) SetStdinTTY added in v0.11.1

func (s *IOStreams) SetStdinTTY(isTTY bool)

func (*IOStreams) SetStdoutTTY added in v0.11.1

func (s *IOStreams) SetStdoutTTY(isTTY bool)

func (*IOStreams) TerminalWidth added in v0.12.0

func (s *IOStreams) TerminalWidth() int

Jump to

Keyboard shortcuts

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