量子计算9 发表于 2022-3-12 10:10

go grpc

1. 安装protobuf

第一种方式
https://github.com/protocolbuffers/protobuf/releases

找到对应的版本, 解压后,bin放入到环境变量中


image.png


第二种方式

由于没有apple m1 的二进制压缩包,
brew install autoconf automake libtool brew search protobuf protoc --version 2. 安装protoc-gen-go

go get -u google.golang.org/grpc // 安装protobuf go 的插件 go install github.com/golang/protobuf/protoc-gen-go@latest
页: [1]
查看完整版本: go grpc