windows安装protoc

1. 下载需要的安装包:https://github.com/google/protobuf/releases
2. 将解压文件中的protoc.exe拷贝到c:\windows\system32中
3.go get -u github.com/golang/protobuf/protoc-gen-go

4.安装protoc-gen-go-grpc 插件
地址:https://github.com/grpc/grpc-go

下载成功后,进入grpc-go\cmd\protoc-gen-go-grpc目录

执行go install 此时protoc-gen-go-grpc已经安装在gopath/bin 目录下了



protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative pkg/proto/usspb/uss.proto

相关文章:

  • 2022-01-23
  • 2022-12-23
  • 2021-09-13
  • 2021-08-13
  • 2021-04-07
  • 2022-12-23
  • 2021-04-15
  • 2021-12-21
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-02-10
  • 2021-05-23
  • 2021-06-14
相关资源
相似解决方案