awalterschulze / goderive

Derives and generates mundane golang functions that you do not want to maintain yourself
Apache License 2.0
1.24k stars 43 forks source link

deepcopy: fix dup field names for StructOfStructs. #52

Closed jdef closed 5 years ago

jdef commented 5 years ago

Prior to this change, if multiple fields in a struct implemented their own DeepCopy() then the generator would redeclare field in the same scope.

awalterschulze commented 5 years ago

Thank you for adding a test and fixing this :)