Skip to content

Commit 70fc086

Browse files
simonpasquierachew22
authored andcommitted
protoc-gen-grpc-gateway: use context package from stdlib
1 parent 9a7c952 commit 70fc086

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

examples/proto/examplepb/a_bit_of_everything.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/proto/examplepb/echo_service.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/proto/examplepb/flow_combination.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/proto/examplepb/response_body_service.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/proto/examplepb/stream.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/proto/examplepb/unannotated_echo_service.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/proto/examplepb/wrappers.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protoc-gen-grpc-gateway/gengateway/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ type generator struct {
3939
func New(reg *descriptor.Registry, useRequestContext bool, registerFuncSuffix, pathTypeString string, allowPatchFeature bool) gen.Generator {
4040
var imports []descriptor.GoPackage
4141
for _, pkgpath := range []string{
42+
"context",
4243
"io",
4344
"net/http",
4445
"github.com/grpc-ecosystem/grpc-gateway/runtime",
4546
"github.com/grpc-ecosystem/grpc-gateway/utilities",
4647
"github.com/golang/protobuf/proto",
47-
"golang.org/x/net/context",
4848
"google.golang.org/grpc",
4949
"google.golang.org/grpc/codes",
5050
"google.golang.org/grpc/grpclog",

0 commit comments

Comments
 (0)