Documentation ¶
Index ¶
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
}
func NewTrie ¶
func NewTrie(updateMDataFunc UpdateMDataFunc) *Trie
type TrieInterface ¶ added in v1.0.5
type TrieInterface interface { // Inserts a word into trie Insert(word []rune) // Searches for prefix in the trie, indicated by bool // if exist, returns metadata stored corresponding to last char Search(prefix []rune) (lib.Metadata, bool) // Searches for whole word in the trie, // returns true only if the word is added to trie before with all characters Contains(word []rune) bool }
Click to show internal directories.
Click to hide internal directories.