tree: 16d82f67e4b50c31d1d09a95d5e0c82c06ec2fbc [path history] [tgz]
  1. eventmesh-client.pb.go
  2. eventmesh-client.proto
  3. eventmesh-client_grpc.pb.go
  4. README.md
eventmesh-sdk-go/grpc/proto/README.md

how to generate proto go files

generate go files by the protoc-gen-go owned by Google

  1. install the latest protoc-gen-go and protoc-gen-go-grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
  1. run command
protoc --go_out=. eventmesh-client.proto
protoc --go-grpc_out=. eventmesh-client.proto

if you use the latest version protoc-gen-go, and generate by the old command, you will got these error:

--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC