enumer
enumer copied to clipboard
[feature request] Auto-detect enum types based on line comments
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?