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 Error(ctx context.Context, format string, args ...interface{})
- func Green(ctx context.Context, format string, args ...interface{})
- func HasNewline(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 Warning(ctx context.Context, format string, args ...interface{})
- func White(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
- func Yellow(ctx context.Context, format string, args ...interface{})
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 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.