Index returns the path to the i'th child of the StateTreeNode.
(i ...uint64)
| 689 | |
| 690 | // Index returns the path to the i'th child of the StateTreeNode. |
| 691 | func (n *StateTreeNode) Index(i ...uint64) *StateTreeNode { |
| 692 | newIndices := make([]uint64, len(n.Indices)+len(i)) |
| 693 | copy(newIndices, n.Indices) |
| 694 | copy(newIndices[len(n.Indices):], i) |
| 695 | return &StateTreeNode{Tree: n.Tree, Indices: newIndices} |
| 696 | } |
| 697 | |
| 698 | // Parameter returns the path node to the parameter with the given name. |
| 699 | func (n *Command) Parameter(name string) *Parameter { |
no outgoing calls