MCPcopy
hub / github.com/BishopFox/jsluice / NamedChildCount

Method NamedChildCount

tree.go:104–109  ·  view source on GitHub ↗

NamedChildCount returns the number of named children a Node has.

()

Source from the content-addressed store, hash-verified

102
103// NamedChildCount returns the number of named children a Node has.
104func (n *Node) NamedChildCount() int {
105 if !n.IsValid() {
106 return 0
107 }
108 return int(n.node.NamedChildCount())
109}
110
111// Childten returns a slide of *Node containing all children for a node
112func (n *Node) Children() []*Node {

Callers 3

NamedChildrenMethod · 0.95
GetNodeFuncMethod · 0.80
GetKeysMethod · 0.80

Calls 1

IsValidMethod · 0.95

Tested by

no test coverage detected