Documentation ¶ Overview ¶ Package color is a very basic ANSI escape sequence colorer. Use it like this: fmt.Println(color.Text(color.Red) + "I AM SO RED" + color.Reset()) fmt.Println(color.All(color.Red, false, color.White) + "Red on white." + color.Reset()) Index ¶ func All(foreground Color, bright bool, background Color) string func Error(e error) string func Fail() string func Pass() string func Reset() string func Text(c Color) string type Color Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func All ¶ func All(foreground Color, bright bool, background Color) string func Error ¶ func Error(e error) string Error() returns an error string colored red func Fail ¶ func Fail() string Fail() returns a cute little red cross mark ✗ func Pass ¶ func Pass() string Pass() returns a cute little green check mark ✓ func Reset ¶ func Reset() string func Text ¶ func Text(c Color) string Types ¶ type Color ¶ type Color int const ( Black Color = iota + 1 Red Green Yellow Blue Magenta Cyan White ) Source Files ¶ View all Source files color.go Click to show internal directories. Click to hide internal directories.