dmarkham / enumer

A Go tool to auto generate methods for your enums
Other
410 stars 66 forks source link

Option to add a ToString interface where numeric-based strings are generated #86

Open tomtwinkle opened 5 months ago

tomtwinkle commented 5 months ago

Changes

Why

I sometimes want to convert an int item specified by enum to a string, e.g. to specify RESTFull API request parameters, etc. ref. https://github.com/dmarkham/enumer/issues/83

Note

Add ToString interface option to generate number-based string.