Files
gonum/.github/workflows/script.d/check-formatting.sh
T
Sebastien Binet ba05c1592d all: use go tool directive
Fixes #2021

Signed-off-by: Sebastien Binet <binet@cern.ch>
2025-10-03 09:16:48 +00:00

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