mirror of
https://github.com/abice/go-enum.git
synced 2026-10-29 09:07:40 +08:00
13 lines
333 B
Go
13 lines
333 B
Go
//go:generate ../bin/go-enum --marshal --nocase --flag --names --values -b example
|
|
|
|
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
|