Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is just a wrapper that prints stuff to STDOUT or STDERR, with optional color.
func (*Logger) VerboseErrf ¶
VerboseErrf prints stuff to STDERR if verbose mode is enabled.
func (*Logger) VerboseOutf ¶
VerboseOutf prints stuff to STDOUT if verbose mode is enabled.
type PrintFunc ¶
var ( Default PrintFunc = color.New(color.Reset).FprintfFunc() Blue PrintFunc = color.New(color.FgBlue).FprintfFunc() Green PrintFunc = color.New(color.FgGreen).FprintfFunc() Cyan PrintFunc = color.New(color.FgCyan).FprintfFunc() Yellow PrintFunc = color.New(color.FgYellow).FprintfFunc() Magenta PrintFunc = color.New(color.FgMagenta).FprintfFunc() Red PrintFunc = color.New(color.FgRed).FprintfFunc() )
Click to show internal directories.
Click to hide internal directories.