Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrTemplateLoad ¶
IsErrTemplateLoad checks if an error is a ErrTemplateLoad.
func LoadFormatted ¶
LoadFormatted loads the labels' list of a template file as a string separated by comma
func NormalizeColor ¶
NormalizeColor normalizes a color string to a 6-character hex code
Types ¶
type ErrTemplateLoad ¶
ErrTemplateLoad represents a "ErrTemplateLoad" kind of error.
func (ErrTemplateLoad) Error ¶
func (err ErrTemplateLoad) Error() string
type Label ¶
type Label struct {
Name string `yaml:"name"`
Color string `yaml:"color"`
Description string `yaml:"description,omitempty"`
Exclusive bool `yaml:"exclusive,omitempty"`
}
Label represents label information loaded from template
func GetTemplateFile ¶
GetTemplateFile loads the label template file by given name, then parses and returns a list of name-color pairs and optionally description.
Click to show internal directories.
Click to hide internal directories.