Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableColorsStdout ¶
func EnableColorsStdout(enabled *bool) func()
EnableColorsStdout enable colors if possible.
func NewColorable ¶
NewColorable returns new instance of Writer which handles escape sequence.
func NewColorableStderr ¶
NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
func NewColorableStdout ¶
NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
Types ¶
type NonColorable ¶
type NonColorable struct {
// contains filtered or unexported fields
}
NonColorable holds writer but removes escape sequence.
Click to show internal directories.
Click to hide internal directories.