Documentation ¶ Index ¶ func Apply(text string, color Color) string func IsTerminal(w io.Writer) bool type Color Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Apply ¶ func Apply(text string, color Color) string Apply applies the specified color to the given text and returns the colorized text. func IsTerminal ¶ added in v0.2.2 func IsTerminal(w io.Writer) bool Types ¶ type Color ¶ type Color string Color represents a text color. const ( Black Color = "30" Red Color = "31" Green Color = "32" Yellow Color = "33" Blue Color = "34" Magenta Color = "35" Cyan Color = "36" White Color = "37" ) Available colors. Source Files ¶ View all Source files colors.go Click to show internal directories. Click to hide internal directories.