Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrTemplateLoad ¶
IsErrTemplateLoad checks if an error is a ErrTemplateLoad.
func LoadTemplateDescription ¶
LoadTemplateDescription loads the labels from a template file, returns a description string by joining each Label.Name with 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 LoadTemplateFile ¶
LoadTemplateFile loads the label template file by given file name, returns a slice of Label structs.
Click to show internal directories.
Click to hide internal directories.