当前位置:网站首页>【已解决】--go_out: protoc-gen-go: Plugin failed with status code 1.
【已解决】--go_out: protoc-gen-go: Plugin failed with status code 1.
2022-06-22 18:50:00 【Viva Python】
解决:--go_out: protoc-gen-go: Plugin failed with status code 1.
方法一
1. option参数
在.proto文件中添加
option go_package = "./;ProtoModel"; // 对应:生成位置;包名
2. go install
下载Go语言的protoc插件
go install github.com/golang/protobuf/[email protected]
会在<GOPATH>/bin下生成protoc-gen-go.exe文件,这也是导致抛出以上异常的原因。
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-FRcqoqJV-1655796842062)(C:\Users\Jackson\AppData\Roaming\Typora\typora-user-images\image-20220621153128445.png)]](/img/39/a19c781ffedc3138eed252785b9fa6.png)
3. 成功!
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-zlR7lmmG-1655796842064)(C:\Users\Jackson\AppData\Roaming\Typora\typora-user-images\image-20220621153320526.png)]](/img/da/9ced1c0a9c386bc8da75dddaa443e5.png)
边栏推荐
- Goldfish rhca memoirs: do447 managing user and team access -- creating and managing ansible tower users
- [in depth understanding of tcapulusdb technology] business guide for creating doc acceptance
- 经典面试题:一个页面从输入url到呈现过程
- 【深入理解TcaplusDB技术】TcaplusDB进程
- 【深入理解TcaplusDB技术】TcaplusDB新增机型
- [deeply understand tcapulusdb technology] cluster management operation
- Georgia Institute of technology - coordinated coverage and tracking planning of multi UAV wildfire with service quality assurance
- web技术分享| 【高德地图】实现自定义的轨迹回放
- 树、森林及二叉树的相互转换
- [in depth understanding of tcapulusdb technology] new models of tcapulusdb
猜你喜欢

leetcode.11 --- 盛最多水的容器

图的定义及术语

防火墙基础之安全策略和NAT(Easy IP)

Traversal of trees and forests

【深入理解TcaplusDB技术】查看TcaplusDB线上运行情况

How should programmers look up dates
![[in depth understanding of tcapulusdb technology] getting started with MySQL driver](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[in depth understanding of tcapulusdb technology] getting started with MySQL driver

6月第3周B站榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!

图的存储结构(邻接矩阵)

【深入理解TcaplusDB知識庫】部署TcaplusDB Local版常見問題
随机推荐
[in depth understanding of tcaplus DB technology] Introduction to tcaplus JDBC development
ZABBIX learning notes (37)
[in depth understanding of tcapulusdb technology] tcapulusdb operation and maintenance doc
【深入理解TcaplusDB技术】TcaplusDB机器如何下架
金鱼哥RHCA回忆录:DO447管理用户和团队的访问--创建和管理Ansible Tower用户
Zabbix学习笔记(三十七)
【深入理解TcaplusDB技术】单据受理之创建游戏区
Topological sorting
Bubble sort, select sort, direct insert sort
Yarn notes
[deeply understand tcapulusdb technology] tcapulusdb table management - clean up table
Summer Challenge [FFH] Hongmeng machine learning journey from scratch NLP emotion analysis
谷歌| ICML 2022: 深度强化学习中的稀疏训练状态
Goldfish rhca memoirs: do447 managing user and team access -- creating and managing ansible tower users
Recv function with timeout
图的定义及术语
Georgia Institute of technology - coordinated coverage and tracking planning of multi UAV wildfire with service quality assurance
University of Calgary | recommendation system based on Reinforcement Learning
Matplotlib set axis scale interval
【深入理解TcaplusDB知识库】部署TcaplusDB Local版常见问题