錯誤告訴我這個我已經下載了那些包。仍然顯示錯誤 Please install protoc first and than rerun the command$ kit generate service notifactor -t grpc --dmwtime="2019-03-06T16:35:29+08:00" level=error msg="Please install protoc first and than rerun the command"time="2019-03-06T16:35:29+08:00" level=info msg="Install proto3.\nhttps://github.com/google/protobuf/releases\nUpdate protoc Go bindings via\n> go get -u github.com/golang/protobuf/proto\n> go get -u github.com/golang/protobuf/protoc-gen-go\n\nSee also\nhttps://github.com/grpc/grpc-go/tree/master/examples"
1 回答

當年話下
TA貢獻1890條經驗 獲得超9個贊
來自go-kit 來源:
一起使用 gRPC 和 go-kit 非常簡單。
首先,使用 protobuf3 定義您的服務。這在 gRPC 文檔中有解釋。有關示例,請參見 add.proto。確保原型定義與您服務的 go-kit(接口)定義相匹配。
接下來,獲取 protoc 編譯器。
您可以從 protobuf 發布頁面下載預編譯的二進制文件。您將解壓一個名為 protoc3 的文件夾,其中包含一個包含可執行文件的子目錄 bin。將該可執行文件移動到您的 $PATH 中的某個位置,您就可以開始了!
所以只要確保 protoc 在你的 PATH env var 中。
- 1 回答
- 0 關注
- 130 瀏覽
添加回答
舉報
0/150
提交
取消