This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/bash -e
|
|
|
|
result=$( go fmt $@ )
|
|
if [[ $result != "" ]]; then
|
|
>&2 echo "The following files are not formatted correctly: $result"
|
|
exit 1
|
|
fi
|