Versions in this module Expand all Collapse all v1 v1.3.6 Dec 5, 2022 Changes in this version + const CP_UTF8 — windows/amd64 + func SetConsoleCP(codepageID uint32) (err error) — windows/amd64 + func SetConsoleOutputCP(codepageID uint32) (err error) — windows/amd64 + type InputStream struct + File *os.File + func (s *InputStream) IsTerminal() bool + type OutputStream struct + File *os.File + func (s *OutputStream) Columns() int + func (s *OutputStream) IsTerminal() bool + type Streams struct + Stderr *OutputStream + Stdin *InputStream + Stdout *OutputStream + func Init() (*Streams, error) + func StreamsForTesting(t *testing.T) (streams *Streams, close func(*testing.T) *TestOutput) + func (s *Streams) Eprint(a ...interface{}) (n int, err error) + func (s *Streams) Eprintf(format string, a ...interface{}) (n int, err error) + func (s *Streams) Eprintln(a ...interface{}) (n int, err error) + func (s *Streams) Print(a ...interface{}) (n int, err error) + func (s *Streams) Printf(format string, a ...interface{}) (n int, err error) + func (s *Streams) Println(a ...interface{}) (n int, err error) + type TestOutput struct + func (o TestOutput) All() string + func (o TestOutput) Stderr() string + func (o TestOutput) Stdout() string