enumer icon indicating copy to clipboard operation
enumer copied to clipboard

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

Open diwakergupta opened this issue 1 year ago • 0 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?

diwakergupta avatar Oct 16 '24 19:10 diwakergupta