Documentation ¶ Index ¶ func RankedName(li, lj types.Label) bool type By func (by By) Sort(ls types.Labels) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RankedName ¶ func RankedName(li, lj types.Label) bool RankedName compares the label names of li, lj lexically returning true if li.Name < lj.Name, else false. The names "version", "os", and "arch" always have lower ranks in that order, hence "version" < "os" < "arch" < [any other label name] Types ¶ type By ¶ type By func(li, lj types.Label) bool By is a functional type which compares two labels li, lj, returning true if li < lj, else false. func (By) Sort ¶ func (by By) Sort(ls types.Labels) Source Files ¶ View all Source files labelsort.go Click to show internal directories. Click to hide internal directories.