Documentation
¶
Index ¶
- type Trie
- func (trie *Trie) Add(word string)
- func (trie *Trie) Has(word string) bool
- func (trie *Trie) HasPrefix(prefix string) bool
- func (trie *Trie) Remove(word string) bool
- func (trie *Trie) Search(prefix string, limit int) []string
- func (trie *Trie) SearchAppend(dst []string, prefix string, limit int) []string
- func (trie *Trie) String() string
- func (trie *Trie) Stringify(options *tree.Options) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
Trie implements a prefix-tree
func (*Trie) SearchAppend ¶
SearchAppend likes Search but append words to dst
Click to show internal directories.
Click to hide internal directories.