Documentation ¶
Index ¶
- Variables
- func AddPrefix(ctx context.Context, prefix string) context.Context
- func Error(ctx context.Context, arg string)
- func Errorf(ctx context.Context, format string, args ...interface{})
- func HasNewline(ctx context.Context) bool
- func Notice(ctx context.Context, arg string)
- func Noticef(ctx context.Context, format string, args ...interface{})
- func OK(ctx context.Context, arg string)
- func OKf(ctx context.Context, format string, args ...interface{})
- func Prefix(ctx context.Context) string
- func Print(ctx context.Context, arg string)
- func Printf(ctx context.Context, format string, args ...interface{})
- func Warning(ctx context.Context, arg string)
- func Warningf(ctx context.Context, format string, args ...interface{})
- func WithNewline(ctx context.Context, nl bool) context.Context
- func WithPrefix(ctx context.Context, prefix string) context.Context
Constants ¶
This section is empty.
Variables ¶
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 Warningf ¶ added in v1.12.1
Warningf prints the string in yellow to stderr and prepends a warning sign
func WithNewline ¶
WithNewline returns a context with the flag value for newline set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.