Registry / utility / tchap-go-patricia-v2

tchap-go-patricia-v2

JSON →
library2.3.3gogounverified

A generic patricia trie (radix tree) implementation for key-value storage and prefix matching.

go get github.com/tchap/go-patricia/v2
INSTALL
IMPORT
SIG · TCHAP-GO-PATRICIA-
T
tchap-go-patricia-v2
utilitygov2.3.3
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.

patricia
github.com/tchap/go-patricia/v2/patricia

Creates a patricia trie, inserts a key-value pair, and retrieves it.

package main import ( "fmt" "github.com/tchap/go-patricia/v2/patricia" ) func main() { trie := patricia.NewTrie() trie.Insert(patricia.Prefix("hello"), "world") value := trie.Get(patricia.Prefix("hello")) fmt.Println(value) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
tchap-go-patricia-v2 — go get tchap-go-patricia-v2 · libregistry