Documentation ¶
Index ¶
- Variables
- func Err(ctx Context, args ...interface{}) (int, error)
- func Errf(ctx Context, msg string, args ...interface{}) (int, error)
- func Error(ctx Context, msg string, args ...interface{}) (int, error)
- func Out(ctx Context, args ...interface{}) (int, error)
- func Outf(ctx Context, msg string, args ...interface{}) (int, error)
- func Outln(ctx Context, args ...interface{}) (int, error)
- func Warning(ctx Context, msg string, args ...interface{}) (int, error)
- type Context
- func New() Context
- func NewBuffered() (Context, *bytes.Buffer)
- func NewFor(ctx Context) Context
- func WithErrorOutput(ctx Context, err io.Writer) Context
- func WithInput(ctx Context, in io.Reader) Context
- func WithOutput(ctx Context, out io.Writer) Context
- func WithStdIO(ctx Context, r io.Reader, o io.Writer, e io.Writer) Context
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultContext = New()
Functions ¶
Types ¶
type Context ¶
func NewBuffered ¶
Click to show internal directories.
Click to hide internal directories.