Documentation ¶
Index ¶
- Constants
- Variables
- func Bold(output string) string
- func Colorize(colorCode string, format string, args ...interface{}) string
- func Cyan(output string) string
- func Gray(output string) string
- func Green(output string) string
- func NoColor(output string) string
- func PurpleUnderline(output string) string
- func Red(output string) string
- func Yellow(output string) string
Constants ¶
View Source
const ( // ColorRed string = "\x1b[91m" ColorRed string = "\x1b[31m" ColorCyan string = "\x1b[36m" ColorGreen string = "\x1b[32m" ColorYellow string = "\x1b[33m" ColorDefault string = "\x1b[0m" ColorBold string = "\x1b[1m" ColorGray string = "\x1b[90m" )
TODO: remove Color prefix from color constants
Variables ¶
View Source
var ColorCodeLength = len(red) + len(defaultStyle)
Functions ¶
func PurpleUnderline ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.