Registry / utility / kentik-patricia

kentik-patricia

JSON →
library1.2.2gogounverified

A Go implementation of a Patricia trie for IP routing and lookup.

go get github.com/kentik/patricia
INSTALL
IMPORT
SIG · KENTIK-PATRICIA
K
kentik-patricia
utilitygov1.2.2
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/kentik/patricia

Create a Patricia trie and perform a lookup.

package main import ( "fmt" "github.com/kentik/patricia" ) func main() { trie := patricia.NewTrie() trie.Set([]byte{192, 168, 1, 0}, 24, "local") fmt.Println(trie.Find([]byte{192, 168, 1, 1}, 32)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
kentik-patricia — go get kentik-patricia · libregistry