v0.3.0
* Default is now previous single-verbosity level; it was too annoying to add the -v every time. ** -q/--quiet has been added to return to the previous default output
This commit is contained in:
15
.githooks/pre-commit/02-gofmt
Executable file
15
.githooks/pre-commit/02-gofmt
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
srcdir="${PWD}/examples"
|
||||
|
||||
if ! command -v gofmt &> /dev/null;
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for f in $(find ${srcdir} -type f -iname "*.go");
|
||||
do
|
||||
gofmt -w "${f}"
|
||||
git add "${f}"
|
||||
done
|
||||
echo "Reformatted examples"
|
||||
Reference in New Issue
Block a user