Skip to content

Commit 2fea9e1

Browse files
committed
Expose the gRPC code generation plugin.
Clarify the unsupported nature of this interface in the README. Fixes #147.
1 parent 62e4364 commit 2fea9e1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,9 @@ the `plugins` parameter to protoc-gen-go; the usual way is to insert it into
191191
the --go_out argument to protoc:
192192

193193
protoc --go_out=plugins=grpc:. *.proto
194+
195+
## Plugins ##
196+
197+
The `protoc-gen-go/generator` package exposes a plugin interface,
198+
which is used by the gRPC code generation. This interface is not
199+
supported and is subject to incompatible changes without notice.
File renamed without changes.

protoc-gen-go/link_grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131

3232
package main
3333

34-
import _ "github.com/golang/protobuf/protoc-gen-go/internal/grpc"
34+
import _ "github.com/golang/protobuf/protoc-gen-go/grpc"

0 commit comments

Comments
 (0)