MCPcopy Index your code
hub / github.com/coder/slog / fieldsWithContext

Function fieldsWithContext

slog.go:251–253  ·  view source on GitHub ↗
(ctx context.Context, fields Map)

Source from the content-addressed store, hash-verified

249type fieldsKey struct{}
250
251func fieldsWithContext(ctx context.Context, fields Map) context.Context {
252 return context.WithValue(ctx, fieldsKey{}, fields)
253}
254
255func fieldsFromContext(ctx context.Context) Map {
256 l, _ := ctx.Value(fieldsKey{}).(Map)

Callers 1

WithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected