quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

feat(go): --enum-type-name-suffix to avoid same-package enum conflicts

Open alpoi-x opened this issue 7 months ago • 0 comments

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.

alpoi-x avatar Jun 29 '24 23:06 alpoi-x