quicktype
quicktype copied to clipboard
feat(go): --enum-type-name-suffix to avoid same-package enum conflicts
Description
Adds a --enum-type-name-suffix
flag (defaults to false) that will generate Golang enums with their type appended to member names (e.g. Red Colour = "RED"
-> RedColour Colour = "RED"
), resolving an issue with conflicting enums in the same package.
Related Issue
#2624
Motivation and Context
See the issue above for motivation / context, previous behaviour, new behaviour, and test instructions.