Clone Metadata. Warning, this is expensive!
()
| 34 | |
| 35 | // Clone Metadata. Warning, this is expensive! |
| 36 | func (m *Metadata) Clone() Metadata { |
| 37 | result := *m |
| 38 | result.Annotations = maps.Clone(m.Annotations) |
| 39 | result.Labels = maps.Clone(m.Labels) |
| 40 | return result |
| 41 | } |