go-enum icon indicating copy to clipboard operation
go-enum copied to clipboard

const value with suffix

Open haohanyuzmx opened this issue 3 months ago • 0 comments

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"
)

haohanyuzmx avatar Oct 21 '25 06:10 haohanyuzmx