Skip to content

Commit c0a405b

Browse files
committed
Switch to Go stdlib's context package
* Requires Go 1.7 or higher
1 parent f4d1cae commit c0a405b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package oauth1
22

33
import (
4+
"context"
45
"errors"
56
"fmt"
67
"io/ioutil"
78
"net/http"
89
"net/url"
9-
10-
"golang.org/x/net/context"
1110
)
1211

1312
const (

config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package oauth1
22

33
import (
4+
"context"
45
"net/http"
56
"net/http/httptest"
67
"net/url"
78
"testing"
89

910
"github.com/stretchr/testify/assert"
10-
"golang.org/x/net/context"
1111
)
1212

1313
const expectedVerifier = "some_verifier"

context.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package oauth1
22

33
import (
4+
"context"
45
"net/http"
5-
6-
"golang.org/x/net/context"
76
)
87

98
type contextKey struct{}

context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package oauth1
22

33
import (
4+
"context"
45
"net/http"
56
"testing"
67

78
"github.com/stretchr/testify/assert"
8-
"golang.org/x/net/context"
99
)
1010

1111
func TestContextTransport(t *testing.T) {

0 commit comments

Comments
 (0)