mirror of https://github.com/gobwas/glob.git
22 lines
297 B
Go
22 lines
297 B
Go
|
package match
|
||
|
|
||
|
type Kind int
|
||
|
const(
|
||
|
KindRaw Kind = iota
|
||
|
KindMultipleSeparated
|
||
|
KindMultipleSuper
|
||
|
KindSingle
|
||
|
KindComposite
|
||
|
KindPrefix
|
||
|
KindSuffix
|
||
|
KindPrefixSuffix
|
||
|
KindRangeBetween
|
||
|
KindRangeList
|
||
|
)
|
||
|
|
||
|
|
||
|
type Matcher interface {
|
||
|
Match(string) bool
|
||
|
Search(string) (int, int, bool)
|
||
|
Kind() Kind
|
||
|
}
|