Documentation
¶
Overview ¶
Package style holds the terminal's colors and aligned tables. Colors are off unless asked for.
Index ¶
- func Width(s string) int
- type Align
- type Style
- func (s Style) Bold(t string) string
- func (s Style) Cyan(t string) string
- func (s Style) Dim(t string) string
- func (s Style) Green(t string) string
- func (s Style) Magenta(t string) string
- func (s Style) Red(t string) string
- func (s Style) Series(i int, t string) string
- func (s Style) Table(rows [][]string, aligns []Align, header bool) []string
- func (s Style) Yellow(t string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Style ¶
type Style struct{ On bool }
Style wraps text in ANSI colors when On.
Click to show internal directories.
Click to hide internal directories.