dmarkham/enumer

A Go tool to auto generate methods for your enums

56
/ 100
Established

Generates methods enabling enum serialization across multiple formats (JSON, YAML, SQL, GraphQL) and provides case-insensitive string-to-enum conversion with configurable name transformations (snake_case, kebab-case, etc.). Uses Go's `go:generate` directive to introspect constant type definitions and emit conforming marshaler/unmarshaler interface implementations, supporting both basic validation via `IsA()` checks and typed error handling with `errors.Join()`.

518 stars.

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.