Giter VIP home page Giter VIP logo

Comments (5)

LittltU avatar LittltU commented on June 6, 2024

windows 的配置方式有没有呢

from go-programming-tour-book-comments.

eddycjy avatar eddycjy commented on June 6, 2024

windows 的配置方式有没有呢

@LittltU i 可以到 Protobuf 官网看看,是差不多的,只是安装的包不一样了。

from go-programming-tour-book-comments.

prime-duty avatar prime-duty commented on June 6, 2024

protoc-gen-go: error:bad Go source code was generated: 7:1: expected 'IDENT', found 'import',出现这个错误是为什么呀

from go-programming-tour-book-comments.

princeh23 avatar princeh23 commented on June 6, 2024

生成代码时候遇到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.

10212 avatar 10212 commented on June 6, 2024

在执行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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.