1. 从 Protobuf Releaseshttps://github.com/protocolbuffers/protobuf/releases 下载最先版本的发布包安装。
bin文件夹下有个protoc.exe的可执行文件,将文件放到GOPATH/bin下
放好以后在项目中,就可以执行protoc,以Goland为例:
1. 从 Protobuf Releaseshttps://github.com/protocolbuffers/protobuf/releases 下载最先版本的发布包安装。
bin文件夹下有个protoc.exe的可执行文件,将文件放到GOPATH/bin下
放好以后在项目中,就可以执行protoc,以Goland为例: