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{ logg.LevelTrace: color.New(color.FgWhite), logg.LevelDebug: color.New(color.FgWhite), logg.LevelInfo: color.New(color.FgBlue), logg.LevelWarn: color.New(color.FgYellow), logg.LevelError: color.New(color.FgRed), }
Colors mapping.
View Source
var Default = New(os.Stderr)
Default handler outputting to stderr.
View Source
var Strings = [...]string{ logg.LevelTrace: "•", logg.LevelDebug: "•", logg.LevelInfo: "•", logg.LevelWarn: "•", logg.LevelError: "⨯", }
Strings mapping.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.