Hacker News new | ask | show | jobs
by zer00eyz 844 days ago
>>> But what you notice here is we have no string representation of these Enums so we have to build that out next, for this I just use a map[Operation]string and instantiate this with the defined string constants.

Cries in I18N...

1 comments

Or just define the constants as string constants in the first place: "type Operation string"