labelsort

package
v1.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL