Skip to content

Running 'go tool gqlgen generate' re-formats resolver files #4203

Description

@irowell

I do some additional formatting on my functions, namely line splitting.

So a function thats like:

func (arg1, arg2, very long definition) ....

Will be formatted to

func (
arg1,
arg2,
) ...

However re-running generate will undo this, which is super annoying. gofmt doesnt seem to do it alone, not sure what the generator is doing to adjust it or how it might be resolved. I tried skip_import_grouping: true just in case, but no change.

v0.17.90

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions