Documentation ¶
Index ¶
- Variables
- func AddPrefix(ctx context.Context, prefix string) context.Context
- func Error(ctx context.Context, arg any)
- func Errorf(ctx context.Context, format string, args ...any)
- func HasNewline(ctx context.Context) bool
- func Notice(ctx context.Context, arg any)
- func Noticef(ctx context.Context, format string, args ...any)
- func OK(ctx context.Context, arg any)
- func OKf(ctx context.Context, format string, args ...any)
- func Prefix(ctx context.Context) string
- func Print(ctx context.Context, arg any)
- func Printf(ctx context.Context, format string, args ...any)
- func Warning(ctx context.Context, arg any)
- func Warningf(ctx context.Context, format string, args ...any)
- func WithNewline(ctx context.Context, nl bool) context.Context
- func WithPrefix(ctx context.Context, prefix string) context.Context
- type Secret
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 ¶
Click to show internal directories.
Click to hide internal directories.