Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grpc/grpc-go
/ newContextWithLocalKey
Function
newContextWithLocalKey
benchmark/primitives/context_test.go:125–127 ·
view source on GitHub ↗
(parent context.Context)
Source
from the content-addressed store, hash-verified
123
type
ctxKey
struct
{}
124
125
func
newContextWithLocalKey(parent context.Context) context.Context {
126
return
context.WithValue(parent, ctxKey{}, nil)
127
}
128
129
var
ck = ctxKey{}
130
Callers
nothing calls this directly
Calls
1
WithValue
Method · 0.80
Tested by
no test coverage detected