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

Function addFields

zapcore/field.go:208–212  ·  view source on GitHub ↗
(enc ObjectEncoder, fields []Field)

Source from the content-addressed store, hash-verified

206}
207
208func addFields(enc ObjectEncoder, fields []Field) {
209 for i := range fields {
210 fields[i].AddTo(enc)
211 }
212}
213
214func encodeStringer(key string, stringer interface{}, enc ObjectEncoder) (retErr error) {
215 // Try to capture panics (from nil references or otherwise) when calling

Callers 3

EncodeEntryMethod · 0.85
writeContextMethod · 0.85
WithMethod · 0.85

Calls 1

AddToMethod · 0.80

Tested by

no test coverage detected