News for hackers. Stuff that matters.
Re:Go Enums Suck by zarldev on Friday March 01, 2024 @03:50PM (#39566644)
But all go generate does is run a binary like stringer? This can be used in go generate.
Re:Go Enums Suck by mariusor on Saturday March 02, 2024 @04:07AM (#39571188)
I'm not sure I understand exactly what you mean, but you can combine go:generate with go run so you can execute code from the current module/project that does what you want.

//go:generate go run ./internal/enumhelper -flag1 -flag2