Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DEFAULT_ALPHABET is the default alphabet used for generating variations DEFAULT_ALPHABET = "abcdefghijklmnopqrstuvwxyz" // DEFAULT_REMOTE_WORDS_URL is the default url containing the words DEFAULT_REMOTE_WORDS_URL = "https://raw.githubusercontent.com/makifdb/spellcheck/main/words.txt" // DEFAULT_DEPTH is the default depth used for generating variations DEFAULT_DEPTH = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LetterNode ¶
type LetterNode struct {
// contains filtered or unexported fields
}
type Trie ¶
type Trie struct { // mutex is used for locking the trie sync.RWMutex // contains filtered or unexported fields }
func (*Trie) InsertReader ¶
InsertReader adds words from a reader to the trie
func (*Trie) SearchDirect ¶
SearchDirect checks if a word is in the trie
Click to show internal directories.
Click to hide internal directories.