Initial Commit

This commit is contained in:
Gavin Bunney
2019-10-08 10:12:21 -07:00
commit 1251ea9a0b
17 changed files with 1647 additions and 0 deletions

13
scripts/gofmtcheck.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Check gofmt
echo "==> Checking that code complies with gofmt requirements..."
gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`)
if [[ -n ${gofmt_files} ]]; then
echo 'gofmt needs running on the following files:'
echo "${gofmt_files}"
echo "You can use the command: \`make fmt\` to reformat code."
exit 1
fi
exit 0