mirror of
https://github.com/gonum/gonum.git
synced 2026-04-23 00:37:29 +08:00
ba05c1592d
Fixes #2021 Signed-off-by: Sebastien Binet <binet@cern.ch>
9 lines
194 B
Bash
Executable File
9 lines
194 B
Bash
Executable File
#!/bin/bash
|
|
|
|
test -z "$(go tool golang.org/x/tools/cmd/goimports -d .)"
|
|
if [[ -n "$(gofmt -s -l .)" ]]; then
|
|
echo -e '\e[31mCode not gofmt simplified in:\n\n'
|
|
gofmt -s -l .
|
|
echo -e "\e[0"
|
|
fi
|