-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathtidy.sh
More file actions
37 lines (35 loc) · 681 Bytes
/
tidy.sh
File metadata and controls
37 lines (35 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
readonly directory=$(cd "$(dirname "$0")" && pwd)
readonly modules=(
"./"
"./cache/redis"
"./cache/memcache"
"./component/http"
"./config/consul"
"./config/etcd"
"./config/nacos"
"./crypto/rsa"
"./crypto/ecc"
"./eventbus/kafka"
"./eventbus/nats"
"./eventbus/redis"
"./locate/redis"
"./lock/redis"
"./lock/memcache"
"./log/aliyun"
"./log/tencent"
"./network/kcp"
"./network/tcp"
"./network/ws"
"./registry/consul"
"./registry/etcd"
"./registry/nacos"
"./transport/rpcx"
"./transport/grpc"
)
for module in ${modules[@]}
do
cd "${module}"
go mod tidy
cd "${directory}"
done