-
Notifications
You must be signed in to change notification settings - Fork 434
Closed
Description
The following types:
type Foo struct {
metav1.TypeMeta
metav1.ObjectMeta
Spec FooSpec
}
type FooSpec struct {
Parameters map[string]interface{}
}
yield the following code:
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *FooSpec) DeepCopyInto(out *FooSpec) {
*out = *in
if in.Parameters != nil {
in, out := &in.Parameters, &out.Parameters
*out = make(map[string]interface{}, len(*in))
for key, val := range *in {
if val == nil {
(*out)[key] = nil
} else {
(*out)[key] = val.DeepCopyinterface{}()
}
}
}
return
}
which yields the following compiler error:
val.DeepCopyinterface undefined (type interface {} is interface with no methods
Metadata
Metadata
Assignees
Labels
No labels