Open theseusyang1 opened 2 years ago
下载依赖到GOPATH路径下 go get github.com/golang/protobuf/protoc-gen-go go get github.com/gogo/protobuf/protoc-gen-gofast go get github.com/gogo/protobuf/proto go get github.com/gogo/protobuf/jsonpb go get github.com/gogo/protobuf/gogoproto
Generating protocol codes ... protoc -I=internal/proto -I=/src/ -I=/src/github.com/gogo/protobuf/protobuf/ \ --gogo_out=Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,plugins=grpc:internal/proto internal/proto/service.proto /src/: warning: directory does not exist. /src/github.com/gogo/protobuf/protobuf/: warning: directory does not exist. github.com/gogo/protobuf/gogoproto/gogo.proto: File not found. service.proto:7:1: Import "github.com/gogo/protobuf/gogoproto/gogo.proto" was not found or had errors.