GetEncoder returns an encoder configured to write to w.
(w io.Writer)
| 40 | |
| 41 | // GetEncoder returns an encoder configured to write to w. |
| 42 | func GetEncoder(w io.Writer) *Encoder { |
| 43 | e := encPool.Get().(*Encoder) |
| 44 | e.Reset(w) |
| 45 | return e |
| 46 | } |
| 47 | |
| 48 | // PutEncoder returns an encoder to the pool. |
| 49 | func PutEncoder(e *Encoder) { |