3 ms·
While not perfect, there are ways to generate enums automatically using go:generate, e.g. https://github.com/abice/go-enum https://github.com/abice/go-enum
by nateb2022 3y ago
While not perfect, there are ways to generate enums automatically using go:generate, e.g. https://github.com/abice/go-enum https://github.com/abice/go-enum