Documentation ¶
Index ¶
- Variables
- type Color
- func (color *Color) MakeBold()
- func (color Color) Print(text string, mode string)
- func (color Color) Printf(text string, mode string, a ...interface{})
- func (color Color) Println(text string, mode string)
- func (color Color) Sprint(text string, mode string) string
- func (color Color) Sprintf(format string, mode string, a ...interface{}) string
- type IColor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black = colorFgBgPair{ Fg: clr.New(clr.FgBlack), Bg: clr.New(clr.BgBlack), } Red = colorFgBgPair{ Fg: clr.New(clr.FgRed), Bg: clr.New(clr.BgRed), } Green = colorFgBgPair{ Fg: clr.New(clr.FgGreen), Bg: clr.New(clr.BgGreen), } Yellow = colorFgBgPair{ Fg: clr.New(clr.FgYellow), Bg: clr.New(clr.BgYellow), } Blue = colorFgBgPair{ Fg: clr.New(clr.FgBlue), Bg: clr.New(clr.BgBlue), } Magenta = colorFgBgPair{ Fg: clr.New(clr.FgMagenta), Bg: clr.New(clr.BgMagenta), } Cyan = colorFgBgPair{ Fg: clr.New(clr.FgCyan), Bg: clr.New(clr.BgCyan), } White = colorFgBgPair{ Fg: clr.New(clr.FgWhite), Bg: clr.New(clr.BgWhite), } )
Structure Definitions
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.