color
Color package for Go (golang)
...There might be a case where you want to explicitly disable/enable color output. the go-isatty package will automatically disable color output for non-tty output streams (for example if the output were piped directly to less). The color package also disables color output if the NO_COLOR environment variable is set (regardless of its value). Color has support to disable/enable colors programatically both globally and for single color definitions. For example suppose you have a CLI app and a --no-color bool flag. It also has support for single color definitions (local). ...