Documentation
¶
Overview ¶
Example (Bar_qux) ¶
ac := New([]string{"bar", "qux"}) fmt.Println(ac.Match("bar qux"))
Output: [0 1]
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AhoCorasick ¶
type AhoCorasick interface { // Match returns all indices of strings that were found in the passed text Match(text string) []int }
AhoCorasick is an interface that returns all matching strings in a text. Use New() to initialize a new AhoCorasick interface.
Click to show internal directories.
Click to hide internal directories.