MCPcopy
hub / github.com/uber-go/zap / dictField

Function dictField

field.go:424–426  ·  view source on GitHub ↗

We need a function with the signature (string, T) for zap.Any.

(key string, val []Field)

Source from the content-addressed store, hash-verified

422
423// We need a function with the signature (string, T) for zap.Any.
424func dictField(key string, val []Field) Field {
425 return Object(key, dictObject(val))
426}
427
428type dictObject []Field
429

Callers 1

DictFunction · 0.85

Calls 2

ObjectFunction · 0.85
dictObjectTypeAlias · 0.85

Tested by

no test coverage detected