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

[feature request] Auto-detect enum types based on line comments #99

Open
diwakergupta opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@diwakergupta
Copy link

Right now enumer requires explicitly listing out the enum types. This can get tedious and error-prone over time.

One solution (e.g. as implemented by enumgen) relies on line comments. Instead of explicitly listing the enum types, you simply add a line comment to indicate a type should be treated as an enum, like so:

type MyEnum int32 //enums:enum

Is there appetite for such a feature?

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

No branches or pull requests

1 participant