Registry / utility / liuzl-cedar-go

liuzl-cedar-go

JSON →
library0.0.0-20170805034717-80a9c64b256dgogounverified

Double-array trie implementation in Go, ported from the C++ cedar library.

go get github.com/liuzl/cedar-go
INSTALL
IMPORT
SIG · LIUZL-CEDAR-GO
L
liuzl-cedar-go
utilitygov0.0.0-20170805034717-80a9c64b256d
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.

cedar
github.com/liuzl/cedar-go

Create a trie, insert a key, and retrieve its value.

package main import ( "fmt" "github.com/liuzl/cedar-go" ) func main() { trie := cedar.New() trie.Insert([]byte("key"), 0) fmt.Println(trie.Get([]byte("key"))) }
Debug
Known issues
gotchaNot thread-safe for concurrent writes.
fix
Use external synchronization (e.g., sync.RWMutex) when performing insertions or deletions from multiple goroutines.
affects: all
Upgrade
Version history
0.0.0-20170805034717-80a9c64b256dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
liuzl-cedar-go — go get liuzl-cedar-go · libregistry