alvaroloes / enumer

A Go tool to auto generate methods for your enums
Other
478 stars 111 forks source link

Making the generated code golint "friendly". #25

Closed wlbr closed 6 years ago

wlbr commented 6 years ago

Added comment to generated ...String function. Removed usage of '_' in identifiers. Had to patch the stringer.go code as well.

alvaroloes commented 6 years ago

OMG! Thank you VERY much for this. It is really hard for me to find time to do this. And you did it! Not sure where you are from, but I would like to take a beer together 🍻

wlbr commented 6 years ago

Hey thanks, these are way to many cudos! I'm from Germany, so ... beer is really available here, but it could be difficult to get it together.

Don't bother - I just needed the backward resolution of the enum and liked your tool. Actually Pikes stringer generates code with the same linting problems, so you are in good companionship.

Cheers! Michael