betterGo: https://github.com/PioneerIncubator/betterGo
- import and use betterGo's enum library functions
go install github.com/PioneerIncubator/betterGo
install betterGo binary$GOPATH/bin/betterGo -w -f main.go
target file/dir to generate.- Done. You can release your binary now.