Documentation ¶
Index ¶
- Constants
- func Blue(s string) string
- func Gray(s string) string
- func Green(s string) string
- func LightGreen(s string) string
- func Purple(s string) string
- func Red(s string) string
- func RedBackground(s string) string
- func Style(colorCode Color, s string, wordFormats ...Decoration) string
- func White(s string) string
- func Yellow(s string) string
- type Color
- type Decoration
Constants ¶
View Source
const ( ColorWhite Color = 0 ColorRed = 31 ColorGreen = 32 ColorYellow = 33 ColorBlue = 34 ColorPurple = 35 ColorLightGreen = 36 ColorGray = 37 ColorRedBackground = 41 )
Variables ¶
This section is empty.
Functions ¶
func LightGreen ¶
func RedBackground ¶
Types ¶
type Decoration ¶
type Decoration int
const ( Normal Decoration = iota Bold Italic Underline )
func (Decoration) String ¶
func (d Decoration) String() string
Click to show internal directories.
Click to hide internal directories.