'Running protoc commands not generating Register method
I am trying to generate service with plugin methods in for grpc go
This is my score.proto file
syntax="proto3";
option go_package="./livescore";
service ScoreService{
rpc ListMatches(ListMatchesRequest) returns (ListMatchesResponse);
}
message ListMatchesRequest{
string country=1;
}
message MatchScoreResponse{
string score =1;
bool live=2;
}
message ListMatchesResponse{
repeated MatchScoreResponse scores=1;
}
When I am running this command
protoc -I=. --go_out=. score.proto
its working fine
But following command to generate RegisterScoreServiceServer as well
protoc -I=. --go-grpc_out=. score.proto
is giving me error
protoc-gen-go-grpc: program not found or is not executable
I know the plugins flag is deprecated ,but then how to generate plugins as well .Its bit confusing any help would be welcome
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
