Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
func NewTrieTree ¶
func NewTrieTree() *Node
func (*Node) FuzzySearch ¶
func (this *Node) FuzzySearch(fuzzy string, topCount int) SearchResult
func (*Node) PrefixSearch ¶
func (this *Node) PrefixSearch(prefix string, topCount int) SearchResult
func (*Node) SubstrSearch ¶
func (this *Node) SubstrSearch(sub string, topCount int) SearchResult
type SearchResult ¶
type SearchResult []*WordCount
func (SearchResult) Len ¶
func (this SearchResult) Len() int
func (SearchResult) Less ¶
func (this SearchResult) Less(i, j int) bool
func (SearchResult) Sort ¶
func (this SearchResult) Sort()
func (SearchResult) Swap ¶
func (this SearchResult) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.