gogen-avro
gogen-avro copied to clipboard
fix field names conflicts
Hello! I found such case: We have field named "foo" in our schema and gogen-avro makes constructor method named NewFoo() Also we have field named "newFoo". After code generating we have conflict of struct NewFoo and constructor method name NewFoo() from field "foo".
I made a fix for that case
HI @fruiting! Thanks for the PR. I'm not open to adding any new fixed prefixes or fixed suffixes to the generated field names to avoid conflicts, because inevitably these names will conflict with someone's naming scheme. If you PRed a change to use a templated name I would be open to merging that.