mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
8e2c826ba3
- 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
12 lines
198 B
Bash
Executable File
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 |