dmarkham/enumer
View on GitHub ↗ ★ 524 Go
A Go tool to auto generate methods for your enums
4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2022-02-04 · latest 2024-07-12
20082026
-
…handy. Still, the lack of enums and enum/sum types remains by far my biggest gripe about Go. [0] https://github.com/dmarkham/enumer
comment by barnabee · 2024-07-12 · in Enums in Go -
How does this compare to enumer? https://github.com/dmarkham/enumer
comment by ptman · 2024-03-28 · in Go Enums Still Suck -
…iterate over all the values?" and "how do you create an enum value from a string?". We chanced upon https://github.com/dmarkham/enumer a few months ago and have been very happy so far.
comment by mieubrisse · 2022-05-14 · in Safer Enums in Go -
…as opposed to actually having it. Doesn't feel like it would add much complexity, if at all. [0] https://github.com/dmarkham/enumer
comment by mkdirp · 2022-02-04 · in What I'd like to see in Go 2.0