protoc-gen-gotemplate icon indicating copy to clipboard operation
protoc-gen-gotemplate copied to clipboard

Add an option to call gofmt or alternative script just after writing the generated file

Open moul opened this issue 7 years ago • 1 comments

This is a bonus, is as we can easily do it from a command just after calling protoc,

Hiwever it allows to ensure every generated go files are formatted and checked for syntax error even if the script fails on the nth file in a batch

moul avatar Feb 28 '17 22:02 moul

this is really simple, like this: https://gist.github.com/vtolstov/c9327a3ef23313891bb050163b3df8ea

vtolstov avatar Jan 09 '21 21:01 vtolstov