#4203·gqlgen

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

Author: irowellCreated Jun 3, 2026Updated Jun 3, 2026

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