The script which checks every file against gofmt -s runs against all files and not just the relevant ones. For its initial use within Travis Ci, this is fine, but the same script couldn't necessarily be used as a pre-commit hook for local development, but there's no reason it couldn't be modified for use in this context.
The script which checks every file against
gofmt -sruns against all files and not just the relevant ones. For its initial use within Travis Ci, this is fine, but the same script couldn't necessarily be used as a pre-commit hook for local development, but there's no reason it couldn't be modified for use in this context.