Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface 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.