(arr zapcore.ArrayEncoder)
| 220 | type stringers[T fmt.Stringer] []T |
| 221 | |
| 222 | func (os stringers[T]) MarshalLogArray(arr zapcore.ArrayEncoder) error { |
| 223 | for _, o := range os { |
| 224 | arr.AppendString(o.String()) |
| 225 | } |
| 226 | return nil |
| 227 | } |
| 228 | |
| 229 | // Times constructs a field that carries a slice of time.Times. |
| 230 | func Times(key string, ts []time.Time) Field { |
nothing calls this directly
no test coverage detected