In PR #177 I want to add CI pipeline to run gofumpt, but the generated code is not fully correctly formatted. So the pipeline would complain about the generated files all of the time.
Instead of adding gofumpt to the //go:generate comment, let's just run the formatter in the same process.
Uses https://github.com/mvdan/gofumpt programmatically.
In PR #177 I want to add CI pipeline to run
gofumpt
, but the generated code is not fully correctly formatted. So the pipeline would complain about the generated files all of the time.Instead of adding
gofumpt
to the//go:generate
comment, let's just run the formatter in the same process.