When you first started learning GRPC, the following error always occurred in generating.proto files
Protoc --proto_path=proto proto/*. Proto --go_out=plugins= GRPC :pd protoc -- gen-go: plugins are not supported; use 'protoc --go-grpc_out=... ' to generate gRPCCopy the code
Finally read a big guy’s article and found it was because of the protobuf version
Finally, the two packages GRPC and Protoc-Gen-Go were downloaded successfully
go get google.golang.org/grpc
go get github.com/golang/protobuf/protoc-gen-go
Copy the code