An enum generator for go enum 类型数据生成器
// clone
git clone [email protected]:DCRcoder/menum.git
// cd 到目录下
go install
NAME:
enumer - An enum generator for go
USAGE:
menum [global options] [arguments...]
GLOBAL OPTIONS:
--file value, -f value The file(s) to generate enums. Use more than one flag for more files.
--output value, -o value output file name; default srcdir/<type>_enum.go
--help, -h show help (default: false)
//go:generate menum -output=gen_enums.go