diff --git a/_examples/gomodtidyall.sh b/_examples/gomodtidyall.sh new file mode 100755 index 0000000..3cea1ca --- /dev/null +++ b/_examples/gomodtidyall.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for d in ./*; do + [ ! -d "$d" ] && continue + pushd "$d" > /dev/null 2>&1 + go mod tidy + popd > /dev/null 2>&1 +done