Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnumHitTypeNone = iota // none, match时不支持此选项 EnumHitTypeWord //[]int 命中的单词index EnumHitTypeWordCount //map[string]int 命中单词的数量 EnumHitTypeWordIndex //map[string][]int 命中单词的位置 EnumHitTypeIndexWord //map[int]string 内容中命中次的index以及内容 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is returned by NewMatcher and contains a list of blices to match against
func NewMatcher ¶
NewMatcher creates a new Matcher used to match against a set of blices
func NewStringMatcher ¶
NewStringMatcher creates a new Matcher used to match against a set of strings (this is a helper to make initialization easy)
Click to show internal directories.
Click to hide internal directories.