Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2023 (3)
20082026
  1. 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
  2. I use this one https://github.com/abice/go-enum
    comment by kleton · 2024-03-01 · in Go Enums Suck
  3. …"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
  4. I use this in my projects https://github.com/abice/go-enum
  5. While not perfect, there are ways to generate enums automatically using go:generate, e.g. https://github.com/abice/go-enum
  6. ▲ 2
    Generate Enums for Go from Doc Comments
    story by bdowns328 · 2017-08-11 · 0 comments