NewEncoder returns a new CSV encoder that writes to w.
(w io.Writer)
| 28 | |
| 29 | // NewEncoder returns a new CSV encoder that writes to w. |
| 30 | func NewEncoder(w io.Writer) *Encoder { |
| 31 | return &Encoder{w: w} |
| 32 | } |
| 33 | |
| 34 | // Encode writes the CSV encoding of v to the stream. |
| 35 | func (enc *Encoder) Encode(v interface{}) error { |