Documentation ¶
Index ¶
- Constants
- func SetPlain(p bool)
- type Color
- type Colorize
- func (ct Colorize) Format(fs fmt.State, c rune)
- func (c Colorize) Paint(v ...interface{}) string
- func (C *Colorize) SetBgColor(b Color)
- func (C *Colorize) SetColor(c Color)
- func (C *Colorize) ToggleBgIntensity()
- func (C *Colorize) ToggleBlink()
- func (C *Colorize) ToggleBold()
- func (C *Colorize) ToggleFgIntensity()
- func (C *Colorize) ToggleInverse()
- func (C *Colorize) ToggleUnderline()
- type Property
Constants ¶
View Source
const ( ColorNone = iota //placeholder here so we don't confuse with ColorNone Red Green Yellow Blue Magenta Cyan White Black Color = -1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Colorize ¶
Where the magic happens
func (Colorize) Format ¶
Format allows ColorText to satisfy the fmt.Formatter interface. The format behaviour is the same as for fmt.Print.
func (*Colorize) SetBgColor ¶
func (*Colorize) ToggleBgIntensity ¶
func (C *Colorize) ToggleBgIntensity()
func (*Colorize) ToggleBlink ¶
func (C *Colorize) ToggleBlink()
func (*Colorize) ToggleBold ¶
func (C *Colorize) ToggleBold()
func (*Colorize) ToggleFgIntensity ¶
func (C *Colorize) ToggleFgIntensity()
func (*Colorize) ToggleInverse ¶
func (C *Colorize) ToggleInverse()
func (*Colorize) ToggleUnderline ¶
func (C *Colorize) ToggleUnderline()
Click to show internal directories.
Click to hide internal directories.