You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/protoc-gen-go-grpc/main.go
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ package main
36
36
import (
37
37
"flag"
38
38
"fmt"
39
+
"strings"
39
40
40
41
"google.golang.org/protobuf/compiler/protogen"
41
42
"google.golang.org/protobuf/types/descriptorpb"
@@ -59,6 +60,9 @@ func main() {
59
60
requireUnimplemented=flags.Bool("require_unimplemented_servers", true, "set to false to match legacy behavior")
60
61
useGenericStreams=flags.Bool("use_generic_streams_experimental", true, "set to true to use generic types for streaming client and server objects; this flag is EXPERIMENTAL and may be changed or removed in a future release")
61
62
63
+
vargrpcMappingmappingFlag
64
+
flags.Var(&grpcMapping, "grpc_mapping", "change proto file go_package option, should be like xxx.proto=go_package. Multiple OK")
0 commit comments