1. 安裝protobuf
下載連接: https://github.com/protocolbuffers/protobuf/releases
選擇相應的版本下載並解壓到制定目錄
Linux: unzip protoc-3.10.0-rc-1-linux-x86_64.zip -d /usr/local/
2. 安裝protoc-gen-go(golang安裝版本)
go get -u github.com/golang/protobuf/protoc-gen-go
1. 安裝protobuf
下載連接: https://github.com/protocolbuffers/protobuf/releases
選擇相應的版本下載並解壓到制定目錄
Linux: unzip protoc-3.10.0-rc-1-linux-x86_64.zip -d /usr/local/
2. 安裝protoc-gen-go(golang安裝版本)
go get -u github.com/golang/protobuf/protoc-gen-go
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。