Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMatch = fmt.Errorf("no match") ErrNotFound = fmt.Errorf("not found") )
View Source
var ( Basic = []Comparator{ Eq, Neq, Gt, Gte, Lt, Lte, Contains, NotContains, StartsWith, EndsWith, } )
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
var Contains Comparator = contains{}
Contains
var EndsWith Comparator = endsWith{}
EndsWith
var Eq Comparator = eq{}
Eq
var Gt Comparator = gt{}
Gt
var Gte Comparator = gte{}
Gte
var Lt Comparator = lt{}
Lt
var Lte Comparator = lte{}
Lte
var Neq Comparator = neq{}
Neq
var NotContains Comparator = notContains{}
Not contains
var StartsWith Comparator = startsWith{}
StartsWith
type Registry ¶
type Registry interface {
Get(string) (Comparator, error)
}
func DefaultRegistry ¶
func DefaultRegistry() Registry
func NewRegistry ¶
func NewRegistry(comps ...Comparator) (Registry, error)
Click to show internal directories.
Click to hide internal directories.