Skip to content

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

Open
@diwakergupta

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions