dmarkham/enumer

A Go tool to auto generate methods for your enums

56
/ 100
Established

This tool helps Go developers automatically generate boilerplate code for their custom Go enum types. It takes your defined enum constants and produces functions to convert between the enum value and its string representation, list all enum values, and validate enum assignments. Developers use this to simplify working with enums, especially when interacting with external systems like databases, JSON APIs, or configuration files.

518 stars.

Use this if you are a Go developer who wants to reduce manual coding and ensure consistency when handling custom enum types, particularly for string conversions, JSON marshaling, or database persistence.

Not ideal if you are not a Go developer, or if your project doesn't heavily rely on custom enum types that need serialization/deserialization into various formats.

Go-development code-generation API-development data-serialization database-persistence
No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 20 / 25

How are scores calculated?

Stars

518

Forks

76

Language

Go

License

Last pushed

Jan 22, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/dmarkham/enumer"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.