Documentation ¶ Index ¶ Variables type Tree func FromWord(data []word.Word) *Tree func New() *Tree func (x *Tree) Get(key word.Word) (*uint32, error) func (x *Tree) LeafNum() int func (x *Tree) Put(key word.Word, val uint32) error func (x *Tree) WalkLeaf(f func(word.Word, uint32) error) error func (x *Tree) WalkNode(f func(word.Word, []word.Code, *uint32) error) error 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 Source Files ¶ View all Source files keytree.go Click to show internal directories. Click to hide internal directories.