Use stdlib context in generated Go files (#4904)

This commit is contained in:
Felix Hanley 2018-10-23 10:28:58 +11:00 committed by Robert
parent ff687ae9c1
commit 560718e976
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ void GenerateImports(grpc_generator::File *file, grpc_generator::Printer *printe
}
printer->Print("import (\n");
printer->Indent();
printer->Print(vars, "$context$ \"golang.org/x/net/context\"\n");
printer->Print(vars, "$context$ \"context\"\n");
printer->Print(vars, "$grpc$ \"google.golang.org/grpc\"\n");
printer->Outdent();
printer->Print(")\n\n");

View File

@ -3,10 +3,10 @@ package testing
import (
"../../tests/MyGame/Example"
"context"
"net"
"testing"
"golang.org/x/net/context"
"google.golang.org/grpc"
)

View File

@ -7,7 +7,7 @@ package Example
import "github.com/google/flatbuffers/go"
import (
context "golang.org/x/net/context"
context "context"
grpc "google.golang.org/grpc"
)