Commit 560718e9 authored by Felix Hanley's avatar Felix Hanley Committed by Robert

Use stdlib context in generated Go files (#4904)

parent ff687ae9
......@@ -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");
......
......@@ -3,10 +3,10 @@ package testing
import (
"../../tests/MyGame/Example"
"context"
"net"
"testing"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
......
......@@ -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"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment