Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/slog
/ fieldsFromContext
Function
fieldsFromContext
slog.go:255–258 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
253
}
254
255
func
fieldsFromContext(ctx context.Context) Map {
256
l, _ := ctx.Value(fieldsKey{}).(Map)
257
return
l
258
}
259
260
// With returns a context that contains the given fields.
261
//
Callers
2
entry
Method · 0.85
With
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected