mirror of
https://github.com/abice/go-enum.git
synced 2026-10-28 16:46:59 +08:00
23 lines
190 B
Go
23 lines
190 B
Go
//go:generate ../bin/go-enum --nocase -b example
|
|
|
|
package example
|
|
|
|
/*
|
|
ENUM(
|
|
Unknown = -1,
|
|
Good,
|
|
Bad
|
|
).
|
|
*/
|
|
type Status int
|
|
|
|
/*
|
|
ENUM(
|
|
Unknown = -5,
|
|
Good,
|
|
Bad,
|
|
Ugly
|
|
).
|
|
*/
|
|
type AllNegative int
|