keytree

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicated = errors.New("key already exists")

Functions

This section is empty.

Types

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func FromWord

func FromWord(data []word.Word) *Tree

func New

func New() *Tree

func (*Tree) Get

func (x *Tree) Get(key word.Word) (*uint32, error)

func (*Tree) LeafNum

func (x *Tree) LeafNum() int

func (*Tree) Put

func (x *Tree) Put(key word.Word, val uint32) error

func (*Tree) WalkLeaf

func (x *Tree) WalkLeaf(f func(word.Word, uint32) error) error

func (*Tree) WalkNode

func (x *Tree) WalkNode(f func(word.Word, []word.Code, *uint32) error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL