Files
go-enum/_example/commented.go
Alex Bice 2bf3f089be move examples folder (#112)
* Remove the need for the examples repo to be tested
2022-06-17 13:32:51 -07:00

25 lines
449 B
Go

//go:generate ../bin/go-enum -f=$GOFILE --marshal --lower
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