Registry /
utility / petar-dambovaliev-aho-corasick
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ahocorasick
✓ github.com/petar-dambovaliev/aho-corasick
Find all occurrences of patterns in a string
package main
import (
"fmt"
"github.com/petar-dambovaliev/aho-corasick"
)
func main() {
ac := ahocorasick.New([]string{"he", "she", "his", "hers"})
matches := ac.FindAll("ushers")
fmt.Println(matches)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20230725210150-fb29fc3c913elatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.