Plugins are no longer supported by protoc-gen-go. Instead, it requires a new tool called protoc-gen-go-grpc that will generate the gRPC specific code in a separated file.
The following command will install this protocol compiler plugin:
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
In order to generate .pb.go files we need to specify the --go-grpc_out argument in the protoc command as shown in this commit.
Plugins are no longer supported by protoc-gen-go. Instead, it requires a new tool called protoc-gen-go-grpc that will generate the gRPC specific code in a separated file.
The following command will install this protocol compiler plugin:
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
In order to generate .pb.go files we need to specify the --go-grpc_out argument in the protoc command as shown in this commit.