"chore(data): 移除b.csv测试数据文件"
This commit is contained in:
24
help/gotidy.sh
Normal file
24
help/gotidy.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
# 获取脚本所在目录
|
||||
DIR=$(
|
||||
cd "$(dirname "$0")"
|
||||
pwd
|
||||
)
|
||||
|
||||
find $DIR -name "go.mod" | while read line; do
|
||||
# 获取go.mod文件所在目录
|
||||
MOD_DIR=$(dirname $line)
|
||||
echo "MOD_DIR: $MOD_DIR/go.mod"
|
||||
cd $MOD_DIR
|
||||
go get -u
|
||||
go mod tidy
|
||||
done
|
||||
|
||||
# go get -u
|
||||
# go mod tidy
|
||||
|
||||
# cd cool-tools
|
||||
# go get -u
|
||||
# go mod tidy
|
||||
Reference in New Issue
Block a user