func context.WithValue
9 uses
context (current package)
context.go#L708: func WithValue(parent Context, key, val any) Context {
go.opentelemetry.io/otel/trace
context.go#L25: return context.WithValue(parent, currentSpanKey, span)
net
dial.go#L485: resolveCtx = context.WithValue(resolveCtx, nettrace.TraceKey{}, &shadow)
net/http
h2_bundle.go#L4348: ctx = context.WithValue(ctx, LocalAddrContextKey, c.LocalAddr())
h2_bundle.go#L4350: ctx = context.WithValue(ctx, ServerContextKey, hs)
server.go#L1862: ctx = context.WithValue(ctx, LocalAddrContextKey, c.rwc.LocalAddr())
server.go#L3054: ctx := context.WithValue(baseCtx, ServerContextKey, srv)
net/http/httptrace
trace.go#L41: ctx = context.WithValue(ctx, clientEventContextKey{}, trace)
trace.go#L65: ctx = context.WithValue(ctx, nettrace.TraceKey{}, nt)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |