Closed quyenhl16 closed 1 year ago
Golang requires two protoc plugins for generating grpc go code. https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go is what you’re missing (this generates the message
structs) and https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc which is what you have (this generates the gRPC specific code, but not the underlying messages.)
Golang requires two protoc plugins for generating grpc go code. https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go is what you’re missing (this generates the
message
structs) and https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc which is what you have (this generates the gRPC specific code, but not the underlying messages.)
Thank you for supporting me !
If you’ve resolved your problem, could you go ahead and close the issue? Otherwise, we don’t know if there is anything else at issue.
Hi, I got this issue. I create a file .proto
then I generate the file *grpc_pb.go with protoc. But it has some error
![image](https://user-images.githubusercontent.com/115155436/223774873-26fa371b-c0be-409c-85d8-936bbad88953.png)
( I think the *grpc_fb.go file doesn'n generate struct for SumRequest and SumResponse in my case). How can I fix this issue.