Documentation ¶
Index ¶
- Constants
- func Apply(color int, style int, format string, a ...interface{}) string
- func Black(style int, format string, a ...interface{}) string
- func Blue(style int, format string, a ...interface{}) string
- func Green(style int, format string, a ...interface{}) string
- func Red(style int, format string, a ...interface{}) string
- func Yellow(style int, format string, a ...interface{}) string
Constants ¶
View Source
const ( FgBlack = iota FgRed FgGreen FgYellow FgBlue FgPurple )
Defines the color of the text
View Source
const ( Regular = iota + 1 Light Highlight Underline )
Defines the style of the text
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply applies a `color` and a `style` to the provided `format` It does this by using ANSI color codes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.