1、下载protobuf compiler
sudo pacman -S protobuf
2、添加环境变量GOBIN
export GOBIN=~/go/bin
3、下载golang依赖的包
go get -u github.com/golang/protobuf/protoc-gen-go