3 ms·
>>> 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 an
by zer00eyz 3y 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...
- mseepgood 3y agoOr just define the constants as string constants in the first place: "type Operation string"