()
| 122 | } |
| 123 | |
| 124 | func (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 | |
| 138 | func (i ChartIdentity) clone() ChartIdentity { |
| 139 | out := i |