Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Value *document.Term `json:"value"` Left *Node `json:"left"` Right *Node `json:"right"` Parent *Node `json:"-"` }
Node is an individual element in the tree
type Tree ¶
type Tree struct {
Root *Node `json:"root"`
}
Tree is a tree structure which is the index of our text files and their matching terms/values
func (*Tree) Find ¶
Find searches for a specific term in the tree. If it is not found nil is returned.
Click to show internal directories.
Click to hide internal directories.