3 ms·
You can also use `go generate` to generate the code that translates constants into strings.
by cdelsolar 6y ago
You can also use `go generate` to generate the code that translates constants into strings.
- jerf 6y agoThat's kind of misleading, like there's some sort of built-in support in some sort of go command that does that already. "go generate" is really a red herring. It's completely meaningless. It allows you to define some commands that get run when you type "go generate", but... if I define a shell script called "blah", I can get some commands to run every time I type "blah". go generate doesn't do anything useful.