Documentation ¶
Index ¶
- Variables
- func AddPrefix(ctx context.Context, prefix string) context.Context
- func Black(ctx context.Context, format string, args ...interface{})
- func Blue(ctx context.Context, format string, args ...interface{})
- func Cyan(ctx context.Context, format string, args ...interface{})
- func Debug(ctx context.Context, format string, args ...interface{})
- func Green(ctx context.Context, format string, args ...interface{})
- func HasNewline(ctx context.Context) bool
- func IsHidden(ctx context.Context) bool
- func Magenta(ctx context.Context, format string, args ...interface{})
- func Prefix(ctx context.Context) string
- func Print(ctx context.Context, format string, args ...interface{})
- func Red(ctx context.Context, format string, args ...interface{})
- func White(ctx context.Context, format string, args ...interface{})
- func WithHidden(ctx context.Context, hidden bool) context.Context
- func WithNewline(ctx context.Context, nl bool) context.Context
- func WithPrefix(ctx context.Context, prefix string) context.Context
- func Yellow(ctx context.Context, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Stdout io.Writer = os.Stdout
Stdout is exported for tests
Functions ¶
func AddPrefix ¶
AddPrefix returns a context with the given prefix added to end of the existing prefix
func HasNewline ¶
HasNewline returns the value of newline or the default (true)
func WithHidden ¶
WithHidden returns a context with the flag value for hidden set
func WithNewline ¶
WithNewline returns a context with the flag value for newline set
func WithPrefix ¶
WithPrefix returns a context with the given prefix set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.