Skip to content

[Go] Code doesn't compile when there is a model named "New" + another model name #3920

Closed

Description

As reproduced in #3919 it's relatively common to name a model by prefixing "New" to another model name.
In this case, the generated code won't compile.

The problem is in the Writers, but I'm unsure how to tackle this or if there is any prior art.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions