MCPcopy 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
255func 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

entryMethod · 0.85
WithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected