Documentation
¶
Overview ¶
Provides some predefines ANSI codes to change foreground/background colors or apply text effects
Provides convience methods to print information to color-aware terminal ¶
Provides colorable stdout and stderr streams
Index ¶
- Variables
- func Blue(s string) string
- func Bold(s string) string
- func Cyan(s string) string
- func DarkRed(s string) string
- func Fade(s string) string
- func Gray(s string) string
- func Green(s string) string
- func Greenbg(s string) string
- func Invert(s string) string
- func Print(a ...interface{}) (n int, err error)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
- func Red(s string) string
- func Redbg(s string) string
- func Underline(s string) string
- func Yellow(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Stderr = c.NewColorableStderr()
Colorable-aware stderr, similar to os.Stderr
View Source
var Stdout = c.NewColorableStdout()
Colorable-aware stdout, similar to os.Stdout
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.