You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if fmt-check printed the gofmt commands to run, so I can just copy&paste them into the terminal. Something like this:
$ git commit -a
Please run these commands to fix formatting and then run git add:
gofmt -w foo.go
gofmt -w bar/buz.go
$
It's easy enough adding the "gofmt -w " before each filename, but I'm not sure how you'd get the relative path. For example, if the current working directory is "bar", it should print:
gofmt -w ../foo.go
gofmt -w buz.go
The text was updated successfully, but these errors were encountered:
It would be nice if fmt-check printed the gofmt commands to run, so I can just copy&paste them into the terminal. Something like this:
It's easy enough adding the "gofmt -w " before each filename, but I'm not sure how you'd get the relative path. For example, if the current working directory is "bar", it should print:
The text was updated successfully, but these errors were encountered: