File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1010
1111还需要为生成protobuf和grpc的go文件安装一些插件:
1212``` bash
13- # install protoc-gen-go to generate the go source code for protobuf messages
13+ # 安装 protoc-gen-go(生成普通 Go protobuf 代码)
1414go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
15- # install protoc-gen-go-grpc to generate the go source code for grpc services
15+ # 安装 protoc-gen-go-grpc(生成 gRPC 服务代码)
1616go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
17- # install protoc-gen-grpc-gateway to transport HTTP to grpc
17+ # 安装 protoc-gen-grpc-gateway(grpc-gateway 支持 HTTP 到 gRPC 的转发)
1818go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
19- # install protoc-gen-swagger to parse the swagger annotations in the proto files and generate OpenAPI docs
19+ # 安装 protoc-gen-swagger(生成OpenAPI文档)
2020go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@latest
21+ ```
2122
2223### 步骤2:启动 MySQL
2324例如,使用 Docker 启动 MySQL,然后创建 ` spike ` 数据库:
You can’t perform that action at this time.
0 commit comments