brew install consul
brew install protobuf
安装最新版本,且配置 go mod 代理
brew install go
echo "export GO111MODULE=on" >> ~/.zshrc
echo "export GOPROXY=https://goproxy.io" >> ~/.zshrc
非 $GOPATH 目录下运行
go get github.com/micro/protoc-gen-micro
go get github.com/golang/protobuf/protoc-gen-go