当前位置:网站首页>Go — 相关依赖对应的exe
Go — 相关依赖对应的exe
2022-07-01 21:32:00 【西木Qi】
Go — 相关exe的作用
1、protobuf
protoc.exe
是protobuf
上使用的,这里不过多讲解protobuf
的内容。
下载
https://github.com/protocolbuffers/protobuf/releases
不同时间版本会有差别,只要根据操作系统选择不同包下载即可。
解压
将下载下来的安装包解压出来bin
下的protoc.exe
放到${GOPATH}\bin
下即可。
2、protoc-gen-go.exe
将 protoc
语法的文件生成对应的 go
文件。
下载
只需执行以下命令,${GOPATH}\bin
下就有了:
go get github.com/golang/protobuf/protoc-gen-go
3、grpc
protoc-gen-go-grpc.exe
是grpc使用的。
下载
只需执行以下命令,${GOPATH}\bin
下就有了:
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
4、grpc-gateway
protoc-gen-grpc-gateway.exe
是grpc-gateway使用的。
下载
只需执行以下命令,${GOPATH}\bin
下就有了:
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
5、对客户端提供服务的API依赖
protoc-gen-openapiv2.exe
是对客户端提供服务的API依赖
使用的。
只需执行以下命令,${GOPATH}\bin
下就有了:
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
6、Go-Micro 服务
micro.exe
是Go-Micro 服务
使用的。
只需执行以下命令,${GOPATH}\bin
下就有了:
go install github.com/micro/micro/[email protected]
7、
边栏推荐
猜你喜欢
EURA eurui E1000 series inverter uses PID to realize the relevant parameter setting and wiring of constant pressure water supply function
300 linear algebra Lecture 4 linear equations
Niuke programming question -- must brush the string of 101 (brush the question efficiently, draw inferences from one instance)
Flume面试题
Penetration tools - trustedsec's penetration testing framework (PTF)
BC35&BC95 ONENET MQTT(旧)
Halcon知识:三维重构的一个尝试
PMP与NPDP之间的区别是什么?
图片拼图微信小程序源码_支持多模板制作和流量主
PLC模拟量输入 模拟量转换FB S_ITR(三菱FX3U)
随机推荐
天气预报小程序源码 天气类微信小程序源码
Difference and use between require and import
BPR(贝叶斯个性化排序)
Can I choose to open an account for stock trading on flush? Is it safe?
There are four ways to write switch, you know
【mysql 07】GPG key retrieval failed: “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022“
基础—io密集型计算和cpu密集型计算
统计字符中每个字符出现的个数
PMP与NPDP之间的区别是什么?
基于YOLOv5的口罩佩戴检测方法
Pytest collection (2) - pytest operation mode
2022安全员-B证考试练习题模拟考试平台操作
人才近悦远来,望城区夯实“强省会”智力底座
Accelera Systems Initiative是一个独立的非营利组织
打出三位数的所有水仙花数「建议收藏」
BC35&BC95 ONENET MQTT(旧)
Kuberntes云原生实战一 高可用部署架构
朋友圈社区程序源码分享
深度学习 常见的损失函数
九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3