...
Package color
Package color adds coloring functionality for TTY output.
Color represents a text color.
type Color uint8
Foreground colors.
const (
Black Color = iota + 30
Red
Green
Yellow
Blue
Magenta
Cyan
White
)
func (Color) Add
¶
func (c Color) Add(s string) string
Add adds the coloring to the given string.