Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug = Style{color.Color(99), level.Debug, "DEBUG", "✚", "", "", nil, nil} Error = Style{color.Color(208), level.Error, "ERROR", "✗", "", "", nil, nil} Fatal = Style{color.Color(160), level.Fatal, "FATAL", "🕱", "", "", nil, nil} Good = Style{color.Color(40), level.Good, "GOOD", "🗸", "", "", nil, nil} Info = Style{color.Color(45), level.Info, "INFO", "⮞", "", "", nil, nil} Panic = Style{color.Color(200), level.Panic, "PANIC", "☢", "", "", nil, nil} Warn = Style{color.Color(220), level.Warn, "WARNING", "🗲", "", "", nil, nil} )
Debug style used for prints
Functions ¶
Types ¶
type Style ¶
type Style struct { Color color.Color Level uint8 Msg string Symbol string // contains filtered or unexported fields }
Style is a style definition used for prints
func (Style) BGFunc ¶ added in v1.2.0
BGFunc provides the foreground color of this Style as a function
Click to show internal directories.
Click to hide internal directories.