MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / DeepCopy

Method DeepCopy

value.go:67–77  ·  view source on GitHub ↗

DeepCopy creates a deep copy of Values For nil input it returns nil output.

()

Source from the content-addressed store, hash-verified

65// DeepCopy creates a deep copy of Values
66// For nil input it returns nil output.
67func (values Values) DeepCopy() Values {
68 var values2 Values
69 if values != nil {
70 values2 = make(Values, len(values))
71 for i := range values {
72 values2[i].T = values[i].T
73 values2[i].V = values[i].V.DeepCopy()
74 }
75 }
76 return values2
77}
78
79// Equal performs deep check of equality of two Values.
80//

Callers

nothing calls this directly

Calls 1

DeepCopyMethod · 0.65

Tested by

no test coverage detected