Loading

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

posted @ 2022-04-13 22:11  Allfuture  阅读(2652)  评论(0编辑  收藏  举报