Comments (5)
windows 的配置方式有没有呢
from go-programming-tour-book-comments.
windows 的配置方式有没有呢
@LittltU i 可以到 Protobuf 官网看看,是差不多的,只是安装的包不一样了。
from go-programming-tour-book-comments.
protoc-gen-go: error:bad Go source code was generated: 7:1: expected 'IDENT', found 'import',出现这个错误是为什么呀
from go-programming-tour-book-comments.
生成代码时候遇到unable to determine Go import path for "proto/helloworld.proto"
,应该是现在需要指定编译后存放的目录,需要加上option go_package = "path;name";,本例中应为option go_package ="./proto";
from go-programming-tour-book-comments.
在执行protoc --go_out=plugins=grpc:. ./proto/*.proto
出现错误,报错大概意思是“你必须把要编译的proto文件放在指定的目录下”,而其中原因可能是protoc-gen-go对应可执行文件不存在,可以在protoc-gen-go文件夹下执行go build -o protoc-gen-go main.go
从而生成可执行文件。具体原因我还不太清楚,只是分享一下我遇到的问题^^
from go-programming-tour-book-comments.
Related Issues (20)
- 开启博客之路 | Go 语言编程之旅 HOT 5
- Go 大杀器之性能剖析 PProf(下) | Go 语言编程之旅 HOT 2
- gRPC 的使用和了解 | Go 语言编程之旅 HOT 5
- 同时提供 HTTP 接口 | Go 语言编程之旅 HOT 2
- Go 大杀器之性能剖析 PProf(上) | Go 语言编程之旅 HOT 6
- 基于 TCP 的聊天室 | Go 语言编程之旅 HOT 5
- 生成接口文档 | Go 语言编程之旅 HOT 13
- 缓存淘汰算法 | Go 语言编程之旅 HOT 1
- 缓存的性能和优化思路 | Go 语言编程之旅 HOT 2
- 进行项目设计 | Go 语言编程之旅 HOT 3
- 非核心功能 | Go 语言编程之旅 HOT 2
- 公开和发布度量指标 | Go 语言编程之旅 HOT 1
- gorm v2版本没有gorm解决方案
- 实现聊天室:广播器 | Go 语言编程之旅 HOT 3
- 附录 D:让 Go panic 的十种方法 | Go 语言编程之旅 HOT 2
- 服务注册和发现 | Go 语言编程之旅 HOT 1
- 用 GODEBUG 看调度跟踪 | Go 语言编程之旅 HOT 1
- 附录 B:Goroutine 与 panic、recover 的小问题 | Go 语言编程之旅 HOT 2
- WebSocket 介绍、握手协议和细节 | Go 语言编程之旅 HOT 13
- 在尝试blog-service中Logger部分出错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-programming-tour-book-comments.