File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 99 "net/http"
1010)
1111
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.
1414var HTTPClient ContextKey
1515
1616// 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 (
2222)
2323
2424// 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] .
2626//
2727// Deprecated: Use context.Background() or context.TODO() instead.
2828var NoContext = context .TODO ()
@@ -338,8 +338,8 @@ func (s staticTokenSource) Token() (*Token, error) {
338338 return s .t , nil
339339}
340340
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.
343343var HTTPClient internal.ContextKey
344344
345345// NewClient creates an *http.Client from a Context and TokenSource.
You can’t perform that action at this time.
0 commit comments