Stringers 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 the array version that accepts a slice of fmt.Stringer values.
(key string, vals []fmt.Stringer)
| 355 | // |
| 356 | // This is the array version that accepts a slice of fmt.Stringer values. |
| 357 | func (e *Event) Stringers(key string, vals []fmt.Stringer) *Event { |
| 358 | if e == nil { |
| 359 | return e |
| 360 | } |
| 361 | e.buf = enc.AppendStringers(enc.AppendKey(e.buf, key), vals) |
| 362 | return e |
| 363 | } |
| 364 | |
| 365 | // StringersV adds the field key with vals to the *Event context. |
| 366 | // If a val is not nil, it is added by calling val.String(). |