NewEncoder returns a reusable Encoder. Output will be written to the supplied writer.
(w io.Writer)
| 48 | // NewEncoder returns a reusable Encoder. |
| 49 | // Output will be written to the supplied writer. |
| 50 | func NewEncoder(w io.Writer) *Encoder { |
| 51 | return &Encoder{w: w, enc: json.NewEncoder(w)} |
| 52 | } |
| 53 | |
| 54 | // Encode the data in the supplied value to the stream |
| 55 | // given on creation. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…