Documentation ¶
Index ¶
Constants ¶
View Source
const ( Bold = iota + 1 Faint Italic Underline BlinkSlow BlinkFast Inverse Hide CrossedOut )
Style values
View Source
const ( Black = iota Red Green Yellow Blue Magenta Cyan White )
Color values
Variables ¶
View Source
var Colors = [...]string{
"black",
"red",
"green",
"yellow",
"blue",
"magenta",
"cyan",
"white",
}
Colors contains color names
View Source
var Styles = [...]string{
"bold",
"faint",
"italic",
"underline",
"blink-slow",
"blink-fast",
"inverse",
"hide",
"crossed-out",
}
Styles contains style names
Functions ¶
func ANSICodeString ¶
ANSICodeString returns an ANSI escape sequence string for the requested output. The description is a coma-separated list of foreground color, background color and style: [fg],[bg],[style] An empty description or "reset" returns the ANSI reset sequence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.