MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / ResetDepth

Method ResetDepth

module/catalogue/tree.go:105–111  ·  view source on GitHub ↗
(d int)

Source from the content-addressed store, hash-verified

103}
104
105func (g *Group) ResetDepth(d int) {
106 g.Depth = d
107 next := d + 1
108 for _, c := range g.children {
109 c.ResetDepth(next)
110 }
111}
112func (g *Group) SubId() []string {
113 if len(g.children) > 0 {
114 subs := make([]string, 0, len(g.children))

Callers 1

NewRootFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected