(arr zapcore.ArrayEncoder)
| 134 | type objects[T zapcore.ObjectMarshaler] []T |
| 135 | |
| 136 | func (os objects[T]) MarshalLogArray(arr zapcore.ArrayEncoder) error { |
| 137 | for _, o := range os { |
| 138 | if err := arr.AppendObject(o); err != nil { |
| 139 | return err |
| 140 | } |
| 141 | } |
| 142 | return nil |
| 143 | } |
| 144 | |
| 145 | // ObjectMarshalerPtr is a constraint that specifies that the given type |
| 146 | // implements zapcore.ObjectMarshaler on a pointer receiver. |
nothing calls this directly
no test coverage detected