Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogTerminal ¶
type LogTerminal struct { *termstatus.Terminal io.Writer }
LogTerminal writes data to a second writer in addition to the terminal.
func (*LogTerminal) Printf ¶
func (lt *LogTerminal) Printf(msg string, data ...interface{})
Printf prints a message with formatting.
type StdioWrapper ¶
type StdioWrapper struct {
// contains filtered or unexported fields
}
StdioWrapper provides stdout and stderr integration with termstatus.
func NewStdioWrapper ¶
func NewStdioWrapper(term Terminal) *StdioWrapper
NewStdioWrapper initializes a new stdio wrapper that can be used in place of os.Stdout or os.Stderr.
func (*StdioWrapper) Stderr ¶
func (w *StdioWrapper) Stderr() io.WriteCloser
Stderr returns a writer that is line buffered and can be used in place of os.Stderr. On Close(), the remaining bytes are written, followed by a line break.
func (*StdioWrapper) Stdout ¶
func (w *StdioWrapper) Stdout() io.WriteCloser
Stdout returns a writer that is line buffered and can be used in place of os.Stdout. On Close(), the remaining bytes are written, followed by a line break.
Click to show internal directories.
Click to hide internal directories.