13 lines
347 B
Markdown
13 lines
347 B
Markdown
## proto目录
|
||
存放proto文件,用于生成pb.go文件
|
||
|
||
## pb目录
|
||
存放pb.go文件,用于生成pb.go文件
|
||
|
||
|
||
## 生成pb.go文件
|
||
```shell
|
||
protoc -Iproto/ --go_out=. --go_opt=module=git.gqnotes.com/guoqiang/grpcexercises/consuldemo --go-grpc_out=. --go-grpc_opt=module=git.gqnotes.com/guoqiang/grpcexercises/consuldemo proto/*.proto
|
||
```
|
||
|