Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node represents a single character in the trie. Char is the string repersentation of the character Each node has 26 childe nodes which represent each letter of the alphabet.
type Trie ¶
type Trie struct {
RootNode *Node
}
Trie is the tree that will hold all of the nodes. RootNode is always nil.
func NewTrie ¶
func NewTrie() *Trie
NewTrie creates a new trie with a root. This node is not used to match words so it can be anything; ie "\000".
func (*Trie) InsertAlias ¶ added in v0.6.0
func (*Trie) InsertFileName ¶ added in v0.6.0
Insert inserts a word to the trie.
Click to show internal directories.
Click to hide internal directories.