mirror of
https://github.com/abice/go-enum.git
synced 2026-10-28 16:46:59 +08:00
14 lines
326 B
Go
14 lines
326 B
Go
//go:generate ../bin/go-enum -f=$GOFILE --marshal --nocase --flag --names
|
|
|
|
package example
|
|
|
|
// X is doc'ed
|
|
type X struct {
|
|
}
|
|
|
|
// Make x ENUM(Toyota,_,Chevy,_,Ford,_,Tesla,_,Hyundai,_,Nissan,_,Jaguar,_,Audi,_,BMW,_,Mercedes-Benz,_,Volkswagon)
|
|
type Make int32
|
|
|
|
// Make x ENUM(start=20,middle,end,ps,pps,ppps)
|
|
type NoZeros int32
|