File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
"net/http"
10
10
)
11
11
12
- // HTTPClient is the context key to use with golang.org/x/net/ context's
13
- // WithValue function to associate an *http.Client value with a context.
12
+ // HTTPClient is the context key to use with [ context.WithValue] 's
13
+ // function to associate an *http.Client value with a context.
14
14
var HTTPClient ContextKey
15
15
16
16
// ContextKey is just an empty struct. It exists so HTTPClient can be
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
22
22
)
23
23
24
24
// NoContext is the default context you should supply if not using
25
- // your own context.Context (see https://golang.org/x/net/context) .
25
+ // your own [ context.Context] .
26
26
//
27
27
// Deprecated: Use context.Background() or context.TODO() instead.
28
28
var NoContext = context .TODO ()
@@ -338,8 +338,8 @@ func (s staticTokenSource) Token() (*Token, error) {
338
338
return s .t , nil
339
339
}
340
340
341
- // HTTPClient is the context key to use with golang.org/x/net/ context's
342
- // WithValue function to associate an *http.Client value with a context.
341
+ // HTTPClient is the context key to use with [ context.WithValue] 's
342
+ // function to associate an *http.Client value with a context.
343
343
var HTTPClient internal.ContextKey
344
344
345
345
// NewClient creates an *http.Client from a Context and TokenSource.
You can’t perform that action at this time.
0 commit comments