pgweb/script/check_formatting.sh
Nikita Kazarian 8e2c826ba3 go 1.16 features
- use go embed instead of go-binary and remove all about old assets (go 1.16 feature)
- pin gox version (go 1.16 feature)
- update ci to go 1.16
2021-03-05 03:47:01 +03:00

12 lines
198 B
Bash
Executable File

#!/bin/bash
# Get list of offending files
files="$(go fmt ./pkg/...)"
if [ -n "$files" ]; then
echo "Go code is not formatted:"
for file in $files; do
echo "----> $file"
done
exit 1
fi