Skip to content
/ menum Public

An enum generator for go enum 类型数据生成器

Notifications You must be signed in to change notification settings

DCRcoder/menum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Menum

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 用例

//go:generate menum -output=gen_enums.go

生成代码用例 查看 examples

TODO

About

An enum generator for go enum 类型数据生成器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages