Skip to content

Problem using closing parentheses in enum values #159

@sevein

Description

@sevein

For an enum like the following:

// ENUM(
// Foo1 (X),
// Foo2 (Y),
// ).
type Example string

The generated code reads:

const (
	// ExampleFoo1X is a Example of type Foo1 (X.
	ExampleFoo1X Example = "Foo1 (X"
	// ExampleFoo2Y is a Example of type Foo2 (Y.
	ExampleFoo2Y Example = "Foo2 (Y"
)

Could the issue be in that trimAllTheThings removes ) and all subsequent characters?

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