Browse Source

rpc生成命令说明

wulei 1 year ago
parent
commit
cbe46f44ed
1 changed files with 4 additions and 0 deletions
  1. 4 0
      readme.md

+ 4 - 0
readme.md

@@ -14,3 +14,7 @@
 > 2. GOPRIVATE中增加私有仓库地址: 该部分请自行将其设置为全局环境变量
 > 2. GOPRIVATE中增加私有仓库地址: 该部分请自行将其设置为全局环境变量
 > 
 > 
 >> * export GOPRIVATE=${GOPRIVATE},metawant.greentech.com.cn
 >> * export GOPRIVATE=${GOPRIVATE},metawant.greentech.com.cn
+
+#### rpc调用说明
+> 1. 将proto文件放在rpc_client对应文件夹(若没有可新建)下
+> 2. 进入对应文件夹下,生成go代码命令 protoc --go_out=./ --go-grpc_out=./ *.proto