Mac 安装 protoc
1、安装依赖
brew install automake
brew install libtool
2、安装protoc工具
brew install protobuf
protoc --version
(最新版本)
golang安装 github.com/golang/protobuf
在定义proto的文件目录下执行:
grpc:[目录]
protoc -I=. --go_out=plugins=grpc:. user.proto
1、安装依赖
brew install automake
brew install libtool
2、安装protoc工具
brew install protobuf
protoc --version
(最新版本)
golang安装 github.com/golang/protobuf
在定义proto的文件目录下执行:
grpc:[目录]
protoc -I=. --go_out=plugins=grpc:. user.proto