We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8cf59 commit c840d7eCopy full SHA for c840d7e
fieldpath/managers.go
@@ -80,6 +80,15 @@ func (lhs ManagedFields) Equals(rhs ManagedFields) bool {
80
return true
81
}
82
83
+// Copy the list, this is mostly a shallow copy.
84
+func (lhs ManagedFields) Copy() ManagedFields {
85
+ copy := ManagedFields{}
86
+ for manager, set := range lhs {
87
+ copy[manager] = set
88
+ }
89
+ return copy
90
+}
91
+
92
// Difference returns a symmetric difference between two Managers. If a
93
// given user's entry has version X in lhs and version Y in rhs, then
94
// the return value for that user will be from rhs. If the difference for
0 commit comments