glob/match/match.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
}