The Adaptive Radix Tree: ARTful Indexing for Main-Memory Databases
package main
import (
"fmt"
"github.com/rayzui/art"
)
func main() {
tree := art.New()
tree.Insert([]byte("key"), "value")
value := tree.Search([]byte("key"))
fmt.Println(value)
tree.Each(func(n Node) {
fmt.Println(n.Key(), n.Value())
})
}