dmarkham / enumer

A Go tool to auto generate methods for your enums
Other
411 stars 63 forks source link

Flag for case sensitive in <Type>String(s string) #40

Open rucciva opened 3 years ago

rucciva commented 3 years ago

in my case, i'm converting iota to 1 character string and they includes both lower and upper version of some alphabets. i've read #21 , so maybe add a flag to enable case sensitive in <Type>String(s string).

dmarkham commented 3 years ago

yea I knew someone would not be very happy with this change.. If you have a nice patch for a new flag I'm happy to review.

dmarkham commented 3 years ago

I wonder if instead of a flag we just add a new case sensitive method? <Type>SensitiveString(s string) maybe someone has a better name for it.