Skip to content

const value with suffix #296

@haohanyuzmx

Description

@haohanyuzmx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions