|
|
|
@ -6,7 +6,12 @@ import ( |
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
_getGRPCGen = "go get -u github.com/gogo/protobuf/protoc-gen-gofast" |
|
|
|
|
_grpcProtoc = `protoc --proto_path=%s --proto_path=%s --proto_path=%s --gofast_out=plugins=grpc:.` |
|
|
|
|
_grpcProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --gofast_out=plugins=grpc," + |
|
|
|
|
"Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types," + |
|
|
|
|
"Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types," + |
|
|
|
|
"Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types," + |
|
|
|
|
"Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types," + |
|
|
|
|
"Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types:." |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func installGRPCGen() error { |
|
|
|
|