Documentation ¶
Index ¶
- func All(_ *github.Label) bool
- func FilterAndTransform(labels []*github.Label, filter Predicate, transform NameTransform) []string
- func NameIdentity(name string) string
- func Nothing(_ *github.Label) bool
- type NameTransform
- type Predicate
- func AllMatch(predicates ...Predicate) Predicate
- func AnyMatch(predicates ...Predicate) Predicate
- func ExcludedBy(namePredicate func(string) Predicate, values []string) Predicate
- func FilteredBy(namePredicate func(string) Predicate, values []string) Predicate
- func HasPrefix(prefix string) Predicate
- func HasSuffix(suffix string) Predicate
- func Not(predicate Predicate) Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAndTransform ¶
func FilterAndTransform(labels []*github.Label, filter Predicate, transform NameTransform) []string
FilterAndTransform Filter and transform labels.
Types ¶
type NameTransform ¶
NameTransform A name transformation.
func TrimAllPrefix ¶
func TrimAllPrefix(values []string) NameTransform
TrimAllPrefix Trim all prefix.
type Predicate ¶
Predicate A label predicate.
func ExcludedBy ¶
ExcludedBy Exclude labels by a Predicate.
func FilteredBy ¶
FilteredBy Filter labels by a Predicate.
Click to show internal directories.
Click to hide internal directories.