globusdigital / deep-copy

Deep copy generator
BSD 3-Clause "New" or "Revised" License
150 stars 34 forks source link

Provide flag for receiver name #22

Open ivanjaros opened 1 year ago

ivanjaros commented 1 year ago

It is considered bad code when method receiver name does not match existing name. ie. func(f Foo) vs func(o Foo).

egawata commented 1 year ago

I've just made a PR to get existing receiver names and reuse it. This would solve the problem. https://github.com/globusdigital/deep-copy/pull/32 https://github.com/globusdigital/deep-copy/pull/39