Documentation ¶
Overview ¶
Package color provides functions to generate colored text using ANSI color codes.
For more information, refer to http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ANSI ansi
ANSI implements the Color interface, it generates ANSI escape code to control text color.
View Source
var NoColor nocolor
NoColor implements the Color interface, it makes no transformation to the text.
Functions ¶
func SetDefaultColor ¶
func SetDefaultColor(c Color)
SetDefaultColor changes the color implementation used by global color function in this package.
Types ¶
Click to show internal directories.
Click to hide internal directories.