MCPcopy
hub / github.com/rs/zerolog / StringersV

Method StringersV

event.go:371–373  ·  view source on GitHub ↗

StringersV adds the field key with vals to the *Event context. If a val is not nil, it is added by calling val.String(). If a val is nil, it is encoded as null without calling String(). This is a variadic version that accepts a list of individual fmt.Stringer values.

(key string, vals ...fmt.Stringer)

Source from the content-addressed store, hash-verified

369// This is a variadic version that accepts a list of individual
370// fmt.Stringer values.
371func (e *Event) StringersV(key string, vals ...fmt.Stringer) *Event {
372 return e.Stringers(key, vals)
373}
374
375// Bytes adds the field key with val as a string to the *Event context.
376//

Callers 10

TestEvent_WithNilEventFunction · 0.95
TestWithPluralsFunction · 0.45
TestFieldsArrayNilFunction · 0.45
TestFieldsArrayEmptyFunction · 0.45
TestFieldsDisabledFunction · 0.45
BenchmarkLogFieldTypeFunction · 0.45

Calls 1

StringersMethod · 0.95

Tested by 10

TestEvent_WithNilEventFunction · 0.76
TestWithPluralsFunction · 0.36
TestFieldsArrayNilFunction · 0.36
TestFieldsArrayEmptyFunction · 0.36
TestFieldsDisabledFunction · 0.36
BenchmarkLogFieldTypeFunction · 0.36