func context.WithValue

8 uses

	context (current package)
		context.go#L713: func WithValue(parent Context, key, val any) Context {

	net
		dial.go#L506: 		resolveCtx = context.WithValue(resolveCtx, nettrace.TraceKey{}, &shadow)

	net/http
		h2_bundle.go#L4407: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.LocalAddr())
		h2_bundle.go#L4409: 		ctx = context.WithValue(ctx, ServerContextKey, hs)
		server.go#L1941: 	ctx = context.WithValue(ctx, LocalAddrContextKey, c.rwc.LocalAddr())
		server.go#L3328: 	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)