Registry / utility / cloudflare-ahocorasick

cloudflare-ahocorasick

JSON →
library0.0.0-20240916140611-054963ec9396gogounverified

Implements the Aho-Corasick string matching algorithm for efficient multi-pattern search.

go get github.com/cloudflare/ahocorasick
INSTALL
IMPORT
SIG · CLOUDFLARE-AHOCORA
C
cloudflare-ahocorasick
utilitygov0.0.0-20240916140611-054963ec9396
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/cloudflare/ahocorasick

Creates a matcher and finds all occurrences of patterns in a string.

package main import ( "fmt" "github.com/cloudflare/ahocorasick" ) func main() { matcher := ahocorasick.NewStringMatcher([]string{"foo", "bar"}) matches := matcher.Match([]byte("foobar")) fmt.Println("Matches:", matches) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20240916140611-054963ec9396latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cloudflare-ahocorasick — go get cloudflare-ahocorasick · libregistry