Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
zarldev
2y ago
0 comments
Share
But all go generate does is run a binary like stringer? This can be used in go generate.
0 comments
default
newest
oldest
mariusor
2y ago
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
j
/
k
navigate · click thread line to collapse