MCPcopy Index your code
hub / github.com/g3n/engine / AddNode

Method AddNode

gui/tree.go:299–302  ·  view source on GitHub ↗

AddNode adds a new node to this one and return its pointer

(text string)

Source from the content-addressed store, hash-verified

297
298// AddNode adds a new node to this one and return its pointer
299func (n *TreeNode) AddNode(text string) *TreeNode {
300
301 return n.InsertNodeAt(n.Len(), text)
302}
303
304// Remove removes the specified child from this node or any
305// of its children nodes

Callers

nothing calls this directly

Calls 2

InsertNodeAtMethod · 0.95
LenMethod · 0.95

Tested by

no test coverage detected