go-enum icon indicating copy to clipboard operation
go-enum copied to clipboard

Feature request: some `{{ENUM}}Len()` function, and extra if if an `{{ENUM}}Iter()` function is defined.

Open janpfeifer opened this issue 6 months ago • 1 comments

First, congrats and thanks for the well written tool 😃

I often I find myself iterating over enum values ...

janpfeifer avatar Jun 20 '25 07:06 janpfeifer

Do you mind expanding on these use cases?

There is a values flag that allows you to get a slice of values back. What are you picturing here, so that I might be able to create the changes necessary for you.

abice avatar Jul 22 '25 03:07 abice