MCPcopy Create free account
hub / github.com/chainreactors/spray / NewTreeNode

Function NewTreeNode

core/format.go:27–33  ·  view source on GitHub ↗

NewTreeNode creates a new tree node

(name string)

Source from the content-addressed store, hash-verified

25
26// NewTreeNode creates a new tree node
27func NewTreeNode(name string) *TreeNode {
28 return &TreeNode{
29 Name: name,
30 Children: make(map[string]*TreeNode),
31 IsLeaf: false,
32 }
33}
34
35// AddPath adds a path to the tree
36func (tn *TreeNode) AddPath(parts []string, result *baseline.Baseline) {

Callers 2

AddPathMethod · 0.85
formatTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected