Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct { Sentences []sentenceT // the fields below are generated with the (*Matcher).complete() method Paths []pathToWord HasPathsWithRuneSelf bool // basicly tells if there are complex utf8 chars PathByLetterMap map[rune][]pathToWord // Use if HasPathsWithRuneSelf == true PathByLetterList [utf8.RuneSelf][]pathToWord // Use if HasPathsWithRuneSelf == false // Zero alloc cache UTF8RuneCreation []byte InProgressMatches []inProgressMatch }
Matcher is used to match sentences
func NewMatcher ¶
NewMatcher creates a new instance of the matcher This function takes relatively long to execute so do this once, and use the returned matcher to match it against lots of entries
Click to show internal directories.
Click to hide internal directories.