Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moul opened this issue Feb 28, 2017 · 1 comment

Comments

@moul
Copy link
Owner

moul commented Feb 28, 2017

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

@vtolstov
Copy link

vtolstov commented Jan 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants