Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alpoi-x
Copy link

@alpoi-x alpoi-x commented Jun 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant