Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACMatcher ¶
type ACMatcher struct {
// contains filtered or unexported fields
}
ACMatcher implements the Aho-Corasick algorithm for multi-pattern matching
func NewACMatcher ¶
NewACMatcher creates a new AC matcher instance
func (*ACMatcher) Match ¶
func (m *ACMatcher) Match(text string) []algorithm.MatchResult
Match finds all sensitive words in the text
Click to show internal directories.
Click to hide internal directories.