dmarkham/enumer
A Go tool to auto generate methods for your enums
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.
Stars
518
Forks
76
Language
Go
License
—
Category
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.
Related tools
googleapis/gapic-generator-python
Generate Python API client libraries from Protocol Buffers.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.