Go's enums suck but goenums doesn't!
go generate and this tool does it all:
🔌 Auto JSON/DB integration
🚀 Type-safe parsing
🔧 Enum-specific errors for errors.Is()
🚀 Go 1.23+ iterators
go install github.com/zarldev/goenums@v0.4.3
zarldev.github.io/goenums
#golang #go
Go's enums suck but goenums doesn't!
go generate and this tool does it all:
🔌 Auto JSON/DB integration
🚀 Type-safe parsing
🔧 Enum-specific errors for errors.Is()
🚀 Go 1.23+ iterators
go install github.com/zarldev/goenums@v0.4.3
zarldev.github.io/goenums
#golang #go
Go's enums suck but goenums doesn't!
go generate and this tool does it all:
🔌 Auto JSON/DB integration
🚀 Type-safe parsing
🔧 Enum-specific errors for errors.Is()
🚀 Go 1.23+ iterators
go install github.com/zarldev/goenums@v0.4.3
zarldev.github.io/goenums
#golang #go
Turn Go iotas into type-safe powerhouses with:
✨ Text/SQL/JSON/YAML/Binary Marshaling
✨ Numeric parsing
✨ Compile-time validation
✨ Go 1.23+ iterators
✨ Zero dependencies
go install github.com/zarldev/goenums@latest
📖 zarldev.github.io/goenums
#golang #go #programming
Turn Go iotas into type-safe powerhouses with:
✨ Text/SQL/JSON/YAML/Binary Marshaling
✨ Numeric parsing
✨ Compile-time validation
✨ Go 1.23+ iterators
✨ Zero dependencies
go install github.com/zarldev/goenums@latest
📖 zarldev.github.io/goenums
#golang #go #programming
pkg.go.dev/golang.org/x...
was part of the core language?
Yes I know I can redefine them, but I feel they should have been part of the core roll out of generics.
#golang #go #programming #generics
pkg.go.dev/golang.org/x...
was part of the core language?
Yes I know I can redefine them, but I feel they should have been part of the core roll out of generics.
#golang #go #programming #generics
Added Text & Binary (un)marshalling support for the generated enums and fixed some plural name handling.
Cleaner, smarter, and more reliable enums for Go.
Try it out 👉 github.com/zarldev/goenums
#golang #opensource #go
Added Text & Binary (un)marshalling support for the generated enums and fixed some plural name handling.
Cleaner, smarter, and more reliable enums for Go.
Try it out 👉 github.com/zarldev/goenums
#golang #opensource #go
Type-safe enum generation tool for Go!
github.com/zarldev/goen...
#go #golang #enum #programming
Type-safe enum generation tool for Go!
github.com/zarldev/goen...
#go #golang #enum #programming
I documented the process here:
www.zarl.dev/posts/bored-...
#go #golang #react #reactjs #webdev