Documentation ¶
Index ¶
- Constants
- type Style
- type Styles
- func (s *Styles) Apply(name string, data string) string
- func (s *Styles) Applyf(name string, format string, a ...any) string
- func (s *Styles) Echo(name string, data string)
- func (s *Styles) Echof(name string, format string, a ...any)
- func (s *Styles) Get(name string) *Style
- func (s *Styles) HasStyle(name string) bool
- func (s *Styles) Keyval(key string, val string, names ...string)
- func (s *Styles) Render()
Constants ¶
View Source
const COLOR_OFF = "\x1b[0m"
View Source
const KEY_STYLE_COLOR = 1
View Source
const KEY_STYLE_NAME = 0
View Source
const KEY_STYLE_OPTION = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Style ¶
type Style struct { Name string // contains filtered or unexported fields }
func NewStyleByDef ¶
Click to show internal directories.
Click to hide internal directories.