Documentation ¶
Index ¶
- type Node
- type Tree
- func (trie *Tree) Del(pattern string) error
- func (trie *Tree) Dump()
- func (trie *Tree) Empty() bool
- func (trie *Tree) Exist(pattern string) (interface{}, bool)
- func (trie *Tree) Match(pattern string) (interface{}, bool)
- func (trie *Tree) Put(pattern string, entry interface{})
- func (trie *Tree) SetDelimiter(delimiter string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Key string Parent *Node Children *safemap.Map //nodeKey => Node // contains filtered or unexported fields }
Node is the tree node of the Trie.
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Trie is a tree
func (*Tree) SetDelimiter ¶
SetDelimiter sets the delimiter of the trie object.
Click to show internal directories.
Click to hide internal directories.