// Creates and returns a pointer to a new child for the node.
Creates and returns a pointer to a new child for the node.
// Creates and returns a pointer to a new child for the node .
func (n *trieNode) newChild(rval rune, path string, bitmask uint64, value interface{}, term bool) *trieNode {
	node := &trieNode{
		rval:     rval,
		path:     path,
		mask:     bitmask,
		term:     term,
		value:    value,
		parent:   n,
		children: make(map[rune]*trieNode),
		depth:    n.depth + 1,
	}
	n.children[node.rval] = node
	n.mask |= bitmask
	return node
}
func ( n * trieNode ) newChild ( rval rune , path string , bitmask uint64 , value interface { } , term bool ) * trieNode { node := & trieNode { rval : rval , path : path , mask : bitmask , term : term , value : value , parent : n , children : make ( map [ rune ] * trieNode ) , depth : n . depth + 1 , } n . children [ node . rval ] = node n . mask |= bitmask return node }
Creates and returns a pointer to a new child for the node.
Creates and returns a pointer to a new child for the node .