// Add - Add a key/data-pair tho the tree
Add a key/data-pair tho the tree
// Add - Add a key / data - pair tho the tree
func (tree *LinkedTree) Add(key string, data interface{}) (bool, error) {
	tree.mux.Lock()
	defer tree.mux.Unlock()
	if tree.root == nil {
		tree.root = &LinkedTreeNode{
			Key:  key,
			Data: data,
		}
		tree.count = 1
		return true, nil
	}
	ok, err := tree.root.Add(key, data)
	if ok == true {
		tree.count++
	}
	return ok, err
}
func ( tree * LinkedTree ) Add ( key string , data interface { } ) ( bool , error ) { tree . mux . Lock ( ) defer tree . mux . Unlock ( ) if tree . root == nil { tree . root = & LinkedTreeNode { Key : key , Data : data , } tree . count = 1 return true , nil } ok , err := tree . root . Add ( key , data ) if ok == true { tree . count ++ } return ok , err }
Add a key/data-pair tho the tree
Add a key / data - pair tho the tree