francoispqt / gojay

high performance JSON encoder/decoder with stream API for Golang
MIT License
2.11k stars 113 forks source link

Support naming helper Array types with correct plural (Currencies, not Currencys) #165

Open bramp opened 3 years ago

bramp commented 3 years ago

The gojay generator produces an array type called Currencys for the Currency struct. It would be good if it could follow correct English pluralisation rules, so Currency becomes Currencies.

The correct plural could be determined with a library that understands English, or just giving us a special tag to add to our types to indicate the plural.