abice/go-enum
View on GitHub ↗ ★ 961 Go
An enum generator for go
6 mentions on Hacker News by 5 people: 1 story, 5 comments · first 2017-08-11 · latest 2024-07-12
20082026
-
The posted article mentions https://github.com/abice/go-enum , which does the same thing, no? It even generates the consts based on a list of values in a comment.
comment by PhilippGille · 2024-07-12 · in Enums in Go -
I use this one https://github.com/abice/go-enum
comment by kleton · 2024-03-01 · in Go Enums Suck -
…"go generate ./..." before you checkin, save yourself some typing. I have used this in the past: https://github.com/abice/go-enum But mostly use protos as much as possible these days. (The enum is going to be in the API, might as well use…
comment by jrockway · 2023-12-19 · in Gokrazy – Go Appliances -
I use this in my projects https://github.com/abice/go-enum
comment by kleton · 2023-09-29 · in Compile-time safety for enumerations in Go -
While not perfect, there are ways to generate enums automatically using go:generate, e.g. https://github.com/abice/go-enum
comment by nateb2022 · 2023-07-18 · in Ten years of “Go: The good, the bad, and the meh” -
▲ 2
Generate Enums for Go from Doc Commentsstory by bdowns328 · 2017-08-11 · 0 comments