func EnableColorsStdout(enabled *bool) func()
EnableColorsStdout enable colors if possible.
func NewColorable(file *os.File) io.Writer
NewColorable returns new instance of Writer which handles escape sequence.
func NewColorableStderr() io.Writer
NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
func NewColorableStdout() io.Writer
NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
func NewNonColorable(w io.Writer) io.Writer
NewNonColorable returns new instance of Writer which removes escape sequence from Writer.
NonColorable holds writer but removes escape sequence.
type NonColorable struct {
// contains filtered or unexported fields
}
func (w *NonColorable) Write(data []byte) (n int, err error)
Write writes data on console