Documentation ¶
Index ¶
- Constants
- Variables
- func Blue(format string, a ...interface{}) string
- func Cyan(format string, a ...interface{}) string
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func ErrorBy(err error)
- func Fatal(format string, v ...interface{})
- func Green(format string, a ...interface{}) string
- func HiBlue(format string, a ...interface{}) string
- func HiCyan(format string, a ...interface{}) string
- func HiGreen(format string, a ...interface{}) string
- func HiRed(format string, a ...interface{}) string
- func HiWhite(format string, a ...interface{}) string
- func HiYellow(format string, a ...interface{}) string
- func Info(format string, v ...interface{})
- func Red(format string, a ...interface{}) string
- func Warn(format string, v ...interface{})
- func White(format string, a ...interface{}) string
- func Yellow(format string, a ...interface{}) string
- type Level
Constants ¶
View Source
const ( GreenAttr = iota YellowAttr BlueAttr RedAttr CyanAttr WhiteAttr HiGreenAttr HiYellowAttr HiBlueAttr HiRedAttr HiCyanAttr HiWhiteAttr )
Variables ¶
View Source
var ColorHighMap = map[color.Attribute]*color.Color{ color.FgHiGreen: color.New(color.FgHiGreen, color.Bold), color.FgHiYellow: color.New(color.FgHiYellow, color.Bold), color.FgHiBlue: color.New(color.FgHiBlue, color.Bold), color.FgHiRed: color.New(color.FgHiRed, color.Bold), color.FgHiCyan: color.New(color.FgHiCyan, color.Bold), color.FgHiWhite: color.New(color.FgHiWhite, color.Bold), }
View Source
var ColorMapFunc = map[int]func(string, ...interface{}) string{ GreenAttr: Green, YellowAttr: Yellow, BlueAttr: Blue, RedAttr: Red, CyanAttr: Cyan, WhiteAttr: White, HiGreenAttr: HiGreen, HiYellowAttr: HiYellow, HiBlueAttr: HiBlue, HiRedAttr: HiRed, HiCyanAttr: HiCyan, HiWhiteAttr: HiWhite, }
View Source
var DebugMode = true
View Source
var DisableLogMode bool
View Source
var StdOutput = color.Output
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.