()
| 350 | } |
| 351 | |
| 352 | func (enc *jsonEncoder) clone() *jsonEncoder { |
| 353 | clone := _jsonPool.Get() |
| 354 | clone.EncoderConfig = enc.EncoderConfig |
| 355 | clone.spaced = enc.spaced |
| 356 | clone.openNamespaces = enc.openNamespaces |
| 357 | clone.buf = bufferpool.Get() |
| 358 | return clone |
| 359 | } |
| 360 | |
| 361 | func (enc *jsonEncoder) EncodeEntry(ent Entry, fields []Field) (*buffer.Buffer, error) { |
| 362 | final := enc.clone() |
no test coverage detected