Documentation ¶
Overview ¶
Package cli implements a colored text handler suitable for command-line interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = [...]*color.Color{ log.DebugLevel: color.New(color.FgWhite), log.InfoLevel: color.New(color.FgBlue), log.WarnLevel: color.New(color.FgYellow), log.ErrorLevel: color.New(color.FgRed), log.FatalLevel: color.New(color.FgRed), }
Colors mapping.
View Source
var Default = New(os.Stderr)
Default handler outputting to stderr.
View Source
var Strings = [...]string{ log.DebugLevel: "•", log.InfoLevel: "•", log.WarnLevel: "•", log.ErrorLevel: "⨯", log.FatalLevel: "⨯", }
Strings mapping.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.