Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTagSliceToMap ¶
ParseTagSliceToMap handles splitting a slice of string tags on `:` and creating a map from the parts.
Types ¶
type ExtendTags ¶
type ExtendTags struct {
// contains filtered or unexported fields
}
ExtendTags holds the pre-calculated data to apply the "extend tags" operation on a slice of strings representing some tags
func NewExtendTags ¶
func NewExtendTags(tags []string) ExtendTags
NewExtendTags creates a new ExtraTags struct, including the pre-calculation of prefixes to drop. Empty tags are ignored.
func (*ExtendTags) Extend ¶
func (et *ExtendTags) Extend(tags []string, mutate bool) []string
Extend takes as input a slice of tags as a string, and returns a sorted slice of tags including those specified by ExtraTags. Tags present in ExtraTags will override any present in the input based on their key component (the text before any `:`)
Click to show internal directories.
Click to hide internal directories.