go-enum
go-enum copied to clipboard
const value with suffix
Is there any way to add suffix to generated string, such as
/*
ENUM(
FOO1
FOO2
FOO3
)
*/
type Foo string
const (
// add SUFFIX to value not name
FOO1 Foo="SUFFIX_FOO1"
FOO2 Foo="SUFFIX_FOO2"
FOO3 Foo="SUFFIX_FOO3"
)