mirror of
https://github.com/abice/go-enum.git
synced 2026-10-28 16:46:59 +08:00
25 lines
449 B
Go
25 lines
449 B
Go
//go:generate ../bin/go-enum --marshal --lower -b example
|
|
|
|
package example
|
|
|
|
// Commented is an enumeration of commented values
|
|
/*
|
|
ENUM(
|
|
value1 // Commented value 1
|
|
value2
|
|
value3 // Commented value 3
|
|
)
|
|
*/
|
|
type Commented int
|
|
|
|
// ComplexCommented has some extra complicated parsing rules.
|
|
/*
|
|
ENUM(
|
|
_, // Placeholder with a ',' in it. (for harder testing)
|
|
value1 // Commented value 1
|
|
value2,
|
|
value3 // Commented value 3
|
|
)
|
|
*/
|
|
type ComplexCommented int
|