proto file

This commit is contained in:
Gordon
2021-12-22 11:10:13 +08:00
parent 57e08e282c
commit 777805fc1a
4 changed files with 105 additions and 215 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ source ./proto_dir.cfg
for ((i = 0; i < ${#all_proto[*]}; i++)); do
proto=${all_proto[$i]}
protoc --go_out=plugins=grpc:. $proto
protoc -I ../../../ -I ./ --go_out=plugins=grpc:. $proto
s=`echo $proto | sed 's/ //g'`
v=${s//proto/pb.go}
protoc-go-inject-tag -input=./$v