command
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 3, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
简单的生成枚举数据
命令行通过 -enum 定义枚举量,可以指定多个,每个之间用分号分隔。
单个枚举之间用逗号分隔每个枚举常量名称,其中第一个为枚举名称和枚举方法的 receiver 变量名。
enums -file=state.go -pkg=enums -enum=state:receiver,states1,states2;state2:receiver,state2s1,state2s2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.