enums

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

简单的生成枚举数据

命令行通过 -enum 定义枚举量,可以指定多个,每个之间用分号分隔。 单个枚举之间用逗号分隔每个枚举常量名称,其中第一个为枚举名称和枚举方法的 receiver 变量名。

enums -file=state.go -pkg=enums -enum=state:receiver,states1,states2;state2:receiver,state2s1,state2s2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL