// Delete - Remove a key from the tree
Remove a key from the tree
// Delete - Remove a key from the tree
func (tree *LinkedTree) Delete(key string) (bool, error) {
	tree.mux.Lock()
	defer tree.mux.Unlock()
	node, err := tree.FindNode(key)
	if err != nil {
		return false, err
	}
	node.Deleted = true
	tree.count--
	return true, nil
}
func ( tree * LinkedTree ) Delete ( key string ) ( bool , error ) { tree . mux . Lock ( ) defer tree . mux . Unlock ( ) node , err := tree . FindNode ( key ) if err != nil { return false , err } node . Deleted = true tree . count -- return true , nil }
Remove a key from the tree
Remove a key from the tree