Documentation ¶
Index ¶
- type Colorer
- func (c *Colorer) Black(text string) string
- func (c *Colorer) Blue(text string) string
- func (c *Colorer) Color(text string, colorName string) (colored string, ok bool)
- func (c *Colorer) Cyan(text string) string
- func (c *Colorer) Green(text string) string
- func (c *Colorer) Magenta(text string) string
- func (c *Colorer) Red(text string) string
- func (c *Colorer) White(text string) string
- func (c *Colorer) Yellow(text string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colorer ¶
type Colorer struct{}
Colorer colors text for terminal output using the "github.com/fatih/color" package
func (*Colorer) Color ¶
Color transforms a string into one of the available colors. If the color is not available the string will not be coloured and ok will be false.
Click to show internal directories.
Click to hide internal directories.