Documentation ¶
Overview ¶
Package ahocorasick implements the Aho-Corasick string matching algorithm for efficiently finding all instances of multiple patterns in a text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeserializeError ¶
type DeserializeError struct{}
func (*DeserializeError) Error ¶
func (m *DeserializeError) Error() string
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is the pattern matching state machine.
func CompileByteSlices ¶
CompileByteSlices compiles a Matcher from a slice of byte slices. This Matcher can be used to find occurrences of each pattern in a text.
func CompileStrings ¶
CompileStrings compiles a Matcher from a slice of strings. This Matcher can be used to find occurrences of each pattern in a text.
func Deserialize ¶ added in v0.1.8
func (*Matcher) FindAllByteReader ¶
func (*Matcher) FindAllByteSlice ¶
FindAllByteSlice finds all instances of the patterns in the text.
func (*Matcher) FindAllString ¶
FindAllString finds all instances of the patterns in the text.
Click to show internal directories.
Click to hide internal directories.