Files

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