Documentation ¶
Index ¶
- func Format(str string, formats ...string) string
- type Color
- type 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) RemoveFg() *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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Color ¶
type Color int
func BgDarkColor ¶
func BgLightColor ¶
func FgDarkColor ¶
func FgLightColor ¶
func (Color) IsBackground ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func (*Formatter) Background ¶
func (*Formatter) Foreground ¶
func (*Formatter) RemoveStyle ¶
Click to show internal directories.
Click to hide internal directories.