下载

https://github.com/protocolbuffers/protobuf/releases

根据电脑的版本和位数选择下载:我的电脑是win 64位

安装protoc

 解压

比如我解压的目录:D:\work\protoc-3.7.1-win64

进入D:\work\protoc-3.7.1-win64\bin,得到:protoc.exe

安装

把protoc.exe copy到GOPATH的bin目录下,在下次编译.proto文件的时候即可直接使用命令:

protoc --go_out=. xxx.proto

 

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2021-11-04
  • 2022-12-23
  • 2021-05-21
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-11-06
  • 2021-09-29
相关资源
相似解决方案