Registry / utility / petar-dambovaliev-aho-corasick

petar-dambovaliev-aho-corasick

JSON →
library0.0.0-20230725210150-fb29fc3c913egogounverified

An implementation of the Aho-Corasick string matching algorithm in Go.

go get github.com/petar-dambovaliev/aho-corasick
INSTALL
IMPORT
SIG · PETAR-DAMBOVALIEV-
P
petar-dambovaliev-aho-corasick
utilitygov0.0.0-20230725210150-fb29fc3c913e
harness data pending
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.

Agent activity
2 hits · last 30 days
node
2
Resources
petar-dambovaliev-aho-corasick — go get petar-dambovaliev-aho-corasick · libregistry