manjaro 下golang protobuf的使用

一、下載protobuf compilergit

  sudo pacman -S protobuf github

二、添加環境變量GOBINgolang

  export GOBIN=~/go/binget

三、下載golang依賴的包it

  go get -u github.com/golang/protobuf/protoc-gen-go變量

相關文章
相關標籤/搜索