Currently, the generated model name file contains value receiver:
func (in Foo) OpenFooName() string {
return "com.example.Foo"
}
Meanwhile, deepcopy-gen generates pointer receiver functions like:
func (in *Foo) DeepCopyInto(out *Foo) {
...
}
Go spec allows mixing value and pointe receiver functions, but it might introduce subtle bugs.
recvcheck linter will flag them.
Could you please generate a model name file with pointer receiver?
If the backward compatibility is required, it would be nice to gate this feature behind the flag.
Thank you.
Currently, the generated model name file contains value receiver:
Meanwhile, deepcopy-gen generates pointer receiver functions like:
Go spec allows mixing value and pointe receiver functions, but it might introduce subtle bugs.
recvcheck linter will flag them.
Could you please generate a model name file with pointer receiver?
If the backward compatibility is required, it would be nice to gate this feature behind the flag.
Thank you.