Browse Source

use context instead of x/net/context (#1922)

田欧 6 năm trước cách đây
mục cha
commit
73c4633943
2 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 1 1
      context_test.go
  2. 0 6
      vendor/vendor.json

+ 1 - 1
context_test.go

@@ -6,6 +6,7 @@ package gin
 
 import (
 	"bytes"
+	"context"
 	"errors"
 	"fmt"
 	"html/template"
@@ -24,7 +25,6 @@ import (
 	"github.com/gin-gonic/gin/binding"
 	"github.com/golang/protobuf/proto"
 	"github.com/stretchr/testify/assert"
-	"golang.org/x/net/context"
 
 	testdata "github.com/gin-gonic/gin/testdata/protoexample"
 )

+ 0 - 6
vendor/vendor.json

@@ -90,12 +90,6 @@
 			"version": "v1.1",
 			"versionExact": "v1.1.4"
 		},
-		{
-			"checksumSHA1": "GtamqiJoL7PGHsN454AoffBFMa8=",
-			"path": "golang.org/x/net/context",
-			"revision": "f4e77d36d62c17c2336347bb2670ddbd02d092b7",
-			"revisionTime": "2019-05-02T22:26:14Z"
-		},
 		{
 			"checksumSHA1": "2gaep1KNRDNyDA3O+KgPTQsGWvs=",
 			"path": "golang.org/x/sys/unix",