(enc *jsonEncoder)
| 39 | }) |
| 40 | |
| 41 | func putJSONEncoder(enc *jsonEncoder) { |
| 42 | if enc.reflectBuf != nil { |
| 43 | enc.reflectBuf.Free() |
| 44 | } |
| 45 | enc.EncoderConfig = nil |
| 46 | enc.buf = nil |
| 47 | enc.spaced = false |
| 48 | enc.openNamespaces = 0 |
| 49 | enc.reflectBuf = nil |
| 50 | enc.reflectEnc = nil |
| 51 | _jsonPool.Put(enc) |
| 52 | } |
| 53 | |
| 54 | type jsonEncoder struct { |
| 55 | *EncoderConfig |
no test coverage detected