Documentation
¶
Overview ¶
Index ¶
- type ByKeys
- type Node
- type Trie
- func (t *Trie[T]) Add(key string, value T) Node[T]
- func (t *Trie[T]) Find(key string) (Node[T], bool)
- func (t *Trie[T]) FuzzySearch(pre string) []string
- func (t *Trie[T]) HasKeysWithPrefix(key string) bool
- func (t *Trie[T]) Keys() []string
- func (t *Trie[T]) PrefixSearch(pre string) []string
- func (t *Trie[T]) Remove(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trie ¶
Trie is a data structure that stores a set of strings.
func (*Trie[T]) FuzzySearch ¶
FuzzySearch performs a fuzzy search against the keys in the trie.
func (*Trie[T]) HasKeysWithPrefix ¶
func (*Trie[T]) PrefixSearch ¶
PrefixSearch performs a prefix search against the keys in the trie.
Click to show internal directories.
Click to hide internal directories.