Versions in this module Expand all Collapse all v1 v1.1.0 Oct 4, 2020 v1.0.1 Aug 9, 2020 Changes in this version type Formatter + func (f *Formatter) RemoveFg() *Formatter v1.0.0 Aug 8, 2020 Changes in this version + func Format(str string, formats ...string) string + type Color int + const Background + const Black + const Blue + const Cyan + const Green + const Light + const Majenta + const None + const Red + const White + const Yellow + func BgColor(name string) Color + func BgDarkColor(name string) Color + func BgLightColor(name string) Color + func ColorOf(name string) Color + func FgColor(name string) Color + func FgDarkColor(name string) Color + func FgLightColor(name string) Color + func (c Color) Base() int + func (c Color) IsBackground() bool + func (c Color) IsLight() bool + func (c Color) String(force ...bool) string + type Formatter struct + func New(formats ...string) *Formatter + func (f *Formatter) Add(formats ...string) *Formatter + func (f *Formatter) AddBg(name string) *Formatter + func (f *Formatter) AddColor(name string) *Formatter + func (f *Formatter) AddFg(name string) *Formatter + func (f *Formatter) AddStyle(name string) *Formatter + func (f *Formatter) Background() Color + func (f *Formatter) Foreground() Color + func (f *Formatter) Format(str string) string + func (f *Formatter) RemoveBg() *Formatter + func (f *Formatter) RemoveForeground() *Formatter + func (f *Formatter) RemoveStyle(name string) *Formatter + func (f *Formatter) Reset() *Formatter + func (f *Formatter) String() string + func (f *Formatter) Styles() []Style + type Style int + const Blink + const Bold + const Cancel + const Crossed + const Inverted + const Italic + const Normal + const Underline + func StyleOf(name string) Style + func (st Style) IsCancel() bool + func (st Style) String() string