go win安装grpc-gen-go插件
1. 安装:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
2. 安装protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
3.位置:
C:\Users\你的电脑名称\go\bin
4. 命令:
protoc --go-grpc_out=. --plugin=protoc-gen-go-grpc="C:\Users\你的账户\go\bin\protoc-gen-go-grpc.exe" .\cluster_rpc.proto