MCPcopy Index your code
hub / github.com/coder/coder / fieldsByName

Function fieldsByName

agent/agentchat/log_test.go:97–103  ·  view source on GitHub ↗
(fields []slog.Field)

Source from the content-addressed store, hash-verified

95}
96
97func fieldsByName(fields []slog.Field) map[string]any {
98 byName := make(map[string]any, len(fields))
99 for _, field := range fields {
100 byName[field.Name] = field.Value
101 }
102 return byName
103}

Callers 3

TestMiddlewareAccessLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected