package match
import "github.com/gobwas/glob/match"
Index ¶
- type Any
- func NewAny(s []rune) Any
- func (self Any) Index(s string) (int, []int)
- func (self Any) Len() int
- func (self Any) Match(s string) bool
- func (self Any) String() string
- type AnyOf
- func NewAnyOf(m ...Matcher) AnyOf
- func (self *AnyOf) Add(m Matcher) error
- func (self AnyOf) Index(s string) (int, []int)
- func (self AnyOf) Len() (l int)
- func (self AnyOf) Match(s string) bool
- func (self AnyOf) String() string
- type BTree
- func NewBTree(Value, Left, Right Matcher) (tree BTree)
- func (self BTree) Index(s string) (int, []int)
- func (self BTree) Len() int
- func (self BTree) Match(s string) bool
- func (self BTree) String() string
- type Contains
- func NewContains(needle string, not bool) Contains
- func (self Contains) Index(s string) (int, []int)
- func (self Contains) Len() int
- func (self Contains) Match(s string) bool
- func (self Contains) String() string
- type EveryOf
- func NewEveryOf(m ...Matcher) EveryOf
- func (self *EveryOf) Add(m Matcher) error
- func (self EveryOf) Index(s string) (int, []int)
- func (self EveryOf) Len() (l int)
- func (self EveryOf) Match(s string) bool
- func (self EveryOf) String() string
- type List
- func NewList(list []rune, not bool) List
- func (self List) Index(s string) (int, []int)
- func (self List) Len() int
- func (self List) Match(s string) bool
- func (self List) String() string
- type Matcher
- type Matchers
- type Max
- func NewMax(l int) Max
- func (self Max) Index(s string) (int, []int)
- func (self Max) Len() int
- func (self Max) Match(s string) bool
- func (self Max) String() string
- type Min
- func NewMin(l int) Min
- func (self Min) Index(s string) (int, []int)
- func (self Min) Len() int
- func (self Min) Match(s string) bool
- func (self Min) String() string
- type Nothing
- func NewNothing() Nothing
- func (self Nothing) Index(s string) (int, []int)
- func (self Nothing) Len() int
- func (self Nothing) Match(s string) bool
- func (self Nothing) String() string
- type Prefix
- func NewPrefix(p string) Prefix
- func (self Prefix) Index(s string) (int, []int)
- func (self Prefix) Len() int
- func (self Prefix) Match(s string) bool
- func (self Prefix) String() string
- type PrefixAny
- func NewPrefixAny(s string, sep []rune) PrefixAny
- func (self PrefixAny) Index(s string) (int, []int)
- func (self PrefixAny) Len() int
- func (self PrefixAny) Match(s string) bool
- func (self PrefixAny) String() string
- type PrefixSuffix
- func NewPrefixSuffix(p, s string) PrefixSuffix
- func (self PrefixSuffix) Index(s string) (int, []int)
- func (self PrefixSuffix) Len() int
- func (self PrefixSuffix) Match(s string) bool
- func (self PrefixSuffix) String() string
- type Range
- func NewRange(lo, hi rune, not bool) Range
- func (self Range) Index(s string) (int, []int)
- func (self Range) Len() int
- func (self Range) Match(s string) bool
- func (self Range) String() string
- type Row
- func NewRow(len int, m ...Matcher) Row
- func (self Row) Index(s string) (int, []int)
- func (self Row) Len() (l int)
- func (self Row) Match(s string) bool
- func (self Row) String() string
- type Single
- func NewSingle(s []rune) Single
- func (self Single) Index(s string) (int, []int)
- func (self Single) Len() int
- func (self Single) Match(s string) bool
- func (self Single) String() string
- type SomePool
- type Suffix
- func NewSuffix(s string) Suffix
- func (self Suffix) Index(s string) (int, []int)
- func (self Suffix) Len() int
- func (self Suffix) Match(s string) bool
- func (self Suffix) String() string
- type SuffixAny
- func NewSuffixAny(s string, sep []rune) SuffixAny
- func (self SuffixAny) Index(s string) (int, []int)
- func (self SuffixAny) Len() int
- func (self SuffixAny) Match(s string) bool
- func (self SuffixAny) String() string
- type Super
- func NewSuper() Super
- func (self Super) Index(s string) (int, []int)
- func (self Super) Len() int
- func (self Super) Match(s string) bool
- func (self Super) String() string
- type Text
Types ¶
type Any ¶
type Any struct { Separators []rune }
func NewAny ¶
func (Any) Index ¶
func (Any) Len ¶
func (Any) Match ¶
func (Any) String ¶
type AnyOf ¶
type AnyOf struct { Matchers Matchers }
func NewAnyOf ¶
func (*AnyOf) Add ¶
func (AnyOf) Index ¶
func (AnyOf) Len ¶
func (AnyOf) Match ¶
func (AnyOf) String ¶
type BTree ¶
type BTree struct { Value Matcher Left Matcher Right Matcher ValueLengthRunes int LeftLengthRunes int RightLengthRunes int LengthRunes int }
func NewBTree ¶
func (BTree) Index ¶
todo?
func (BTree) Len ¶
func (BTree) Match ¶
func (BTree) String ¶
type Contains ¶
func NewContains ¶
func (Contains) Index ¶
func (Contains) Len ¶
func (Contains) Match ¶
func (Contains) String ¶
type EveryOf ¶
type EveryOf struct { Matchers Matchers }
func NewEveryOf ¶
func (*EveryOf) Add ¶
func (EveryOf) Index ¶
func (EveryOf) Len ¶
func (EveryOf) Match ¶
func (EveryOf) String ¶
type List ¶
func NewList ¶
func (List) Index ¶
func (List) Len ¶
func (List) Match ¶
func (List) String ¶
type Matcher ¶
type Matchers ¶
type Matchers []Matcher
func (Matchers) String ¶
type Max ¶
type Max struct { Limit int }
func NewMax ¶
func (Max) Index ¶
func (Max) Len ¶
func (Max) Match ¶
func (Max) String ¶
type Min ¶
type Min struct { Limit int }
func NewMin ¶
func (Min) Index ¶
func (Min) Len ¶
func (Min) Match ¶
func (Min) String ¶
type Nothing ¶
type Nothing struct{}
func NewNothing ¶
func NewNothing() Nothing
func (Nothing) Index ¶
func (Nothing) Len ¶
func (Nothing) Match ¶
func (Nothing) String ¶
type Prefix ¶
type Prefix struct { Prefix string }
func NewPrefix ¶
func (Prefix) Index ¶
func (Prefix) Len ¶
func (Prefix) Match ¶
func (Prefix) String ¶
type PrefixAny ¶
func NewPrefixAny ¶
func (PrefixAny) Index ¶
func (PrefixAny) Len ¶
func (PrefixAny) Match ¶
func (PrefixAny) String ¶
type PrefixSuffix ¶
type PrefixSuffix struct { Prefix, Suffix string }
func NewPrefixSuffix ¶
func NewPrefixSuffix(p, s string) PrefixSuffix
func (PrefixSuffix) Index ¶
func (self PrefixSuffix) Index(s string) (int, []int)
func (PrefixSuffix) Len ¶
func (self PrefixSuffix) Len() int
func (PrefixSuffix) Match ¶
func (self PrefixSuffix) Match(s string) bool
func (PrefixSuffix) String ¶
func (self PrefixSuffix) String() string
type Range ¶
func NewRange ¶
func (Range) Index ¶
func (Range) Len ¶
func (Range) Match ¶
func (Range) String ¶
type Row ¶
func NewRow ¶
func (Row) Index ¶
func (Row) Len ¶
func (Row) Match ¶
func (Row) String ¶
type Single ¶
type Single struct { Separators []rune }
single represents ?
func NewSingle ¶
func (Single) Index ¶
func (Single) Len ¶
func (Single) Match ¶
func (Single) String ¶
type SomePool ¶
type Suffix ¶
type Suffix struct { Suffix string }
func NewSuffix ¶
func (Suffix) Index ¶
func (Suffix) Len ¶
func (Suffix) Match ¶
func (Suffix) String ¶
type SuffixAny ¶
func NewSuffixAny ¶
func (SuffixAny) Index ¶
func (SuffixAny) Len ¶
func (SuffixAny) Match ¶
func (SuffixAny) String ¶
type Super ¶
type Super struct{}
func NewSuper ¶
func NewSuper() Super
func (Super) Index ¶
func (Super) Len ¶
func (Super) Match ¶
func (Super) String ¶
type Text ¶
raw represents raw string to match
func NewText ¶
func (Text) Index ¶
func (Text) Len ¶
func (Text) Match ¶
func (Text) String ¶
Source Files ¶
any.go any_of.go btree.go contains.go every_of.go list.go match.go max.go min.go nothing.go prefix.go prefix_any.go prefix_suffix.go range.go row.go segments.go single.go suffix.go suffix_any.go super.go text.go
Directories ¶
Path | Synopsis |
---|---|
match/debug |
- Version
- v0.2.3 (latest)
- Published
- Feb 8, 2018
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 days ago –
Tools for package owners.