Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a node of a prefix tree
type PrefixTree ¶
type PrefixTree struct {
// contains filtered or unexported fields
}
PrefixTree is a prefix tree datastruct
func (*PrefixTree) Add ¶
func (p *PrefixTree) Add(keys []interface{}, value interface{})
Add a node into this prefix tree
func (*PrefixTree) Get ¶
func (p *PrefixTree) Get(keys []interface{}) interface{}
Get a node's value of prefix tree
func (*PrefixTree) IsEmpty ¶
func (p *PrefixTree) IsEmpty() bool
IsEmpty return prefix tree is empty
func (*PrefixTree) Update ¶
func (p *PrefixTree) Update(keys []interface{}, value interface{})
Update a node of prefix tree.
Click to show internal directories.
Click to hide internal directories.