MCPcopy Create free account
hub / github.com/netdata/netdata / clone

Method clone

src/go/plugin/framework/chartengine/internal/program/chart.go:124–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func (c Chart) clone() Chart {
125 out := c
126 out.Meta = c.Meta
127 out.Identity = c.Identity.clone()
128 out.Labels = c.Labels.clone()
129 out.Lifecycle = c.Lifecycle.clone()
130
131 out.Dimensions = make([]Dimension, 0, len(c.Dimensions))
132 for _, dim := range c.Dimensions {
133 out.Dimensions = append(out.Dimensions, dim.clone())
134 }
135 return out
136}
137
138func (i ChartIdentity) clone() ChartIdentity {
139 out := i

Callers 4

cloneMethod · 0.45
NewFunction · 0.45
ChartsMethod · 0.45
ChartMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected