minor: simple shell script to 'go mod tidy' all examples
Vladimir Bauer
3 years ago
1 changed file(s) with
8 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+8
-0
_examples/gomodtidyall.sh
less
more
0
#!/bin/sh
1
2
for d in ./*; do
3
[ ! -d "$d" ] && continue
4
pushd "$d" > /dev/null 2>&1
5
go mod tidy
6
popd > /dev/null 2>&1
7
done