Skip to content

Commit a5f1028

Browse files
replace golang.org/x/net/context with stdlib context
1 parent 3e619b6 commit a5f1028

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

definition.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package graphql
22

33
import (
4+
"context"
45
"fmt"
56
"reflect"
67
"regexp"
78

89
"github.com/graphql-go/graphql/language/ast"
9-
"golang.org/x/net/context"
1010
)
1111

1212
// Type interface for all of the possible kinds of GraphQL types

examples/context/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package main
22

33
import (
4+
"context"
45
"encoding/json"
56
"fmt"
67
"log"
78
"net/http"
89

910
"github.com/graphql-go/graphql"
10-
"golang.org/x/net/context"
1111
)
1212

1313
var Schema graphql.Schema

executor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package graphql
22

33
import (
4+
"context"
45
"errors"
56
"fmt"
67
"reflect"
78
"strings"
89

910
"github.com/graphql-go/graphql/gqlerrors"
1011
"github.com/graphql-go/graphql/language/ast"
11-
"golang.org/x/net/context"
1212
)
1313

1414
type ExecuteParams struct {

executor_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package graphql_test
22

33
import (
4+
"context"
45
"encoding/json"
56
"errors"
67
"fmt"
@@ -12,7 +13,6 @@ import (
1213
"github.com/graphql-go/graphql/gqlerrors"
1314
"github.com/graphql-go/graphql/language/location"
1415
"github.com/graphql-go/graphql/testutil"
15-
"golang.org/x/net/context"
1616
)
1717

1818
func TestExecutesArbitraryCode(t *testing.T) {

graphql.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package graphql
22

33
import (
4+
"context"
5+
46
"github.com/graphql-go/graphql/gqlerrors"
57
"github.com/graphql-go/graphql/language/parser"
68
"github.com/graphql-go/graphql/language/source"
7-
"golang.org/x/net/context"
89
)
910

1011
type Params struct {

graphql_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package graphql_test
22

33
import (
4+
"context"
45
"reflect"
56
"testing"
67

78
"github.com/graphql-go/graphql"
89
"github.com/graphql-go/graphql/testutil"
9-
"golang.org/x/net/context"
1010
)
1111

1212
type T struct {

union_interface_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package graphql_test
22

33
import (
4+
"context"
45
"reflect"
56
"testing"
67

78
"github.com/graphql-go/graphql"
89
"github.com/graphql-go/graphql/testutil"
9-
"golang.org/x/net/context"
1010
)
1111

1212
type testNamedType interface {

0 commit comments

Comments
 (0)