Documentation ¶
Index ¶
- Variables
- func HasEOS(t *TrieNode) bool
- func PotentialDir(t *TrieNode) bool
- func PotentialTerminalDir(t *TrieNode) bool
- type Trie
- func (t *Trie) Apply(f func(*TrieNode))
- func (t *Trie) BreadthFirstApply(apply func(interface{}))
- func (t *Trie) Get(key string) (value interface{}, ok bool)
- func (t *Trie) Match(pass func(*TrieNode) bool) (matches chan *TrieNode)
- func (t *Trie) MatchAndHarvest(pass func(*TrieNode) bool) (matches chan *TrieNode)
- func (t *Trie) Pop(key string) (popd interface{}, ok bool)
- func (t *Trie) Set(key string, value interface{}) (prev interface{})
- func (t *Trie) Tag(pass func(*TrieNode) bool, tag interface{}) int
- func (t *Trie) Walk() chan interface{}
- type TrieNode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NumericStart = 0 NumericEnd = 9 NumericOther = (NumericEnd - NumericStart) + 1 )
View Source
var AsciiAlphabet = &alphabet{ min: 0, max: 255, alphabetizer: indexResolver(asciiAlphabetizer), }
View Source
var NumericAlphabet = &alphabet{ min: NumericStart, max: NumericOther + 1, alphabetizer: indexResolver(numericAlphabetizer), }
Functions ¶
func PotentialDir ¶
func PotentialTerminalDir ¶
Types ¶
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
func (*Trie) BreadthFirstApply ¶
func (t *Trie) BreadthFirstApply(apply func(interface{}))
func (*Trie) MatchAndHarvest ¶
Click to show internal directories.
Click to hide internal directories.