func (w *Writer) UseCRLF() bool {
	return w.w.UseCRLF
}
UseCRLF exposes the csv writer's UseCRLF field.
package struct2csv
import (
	"encoding/csv"
	"io"
)
type Writer struct {
	e Encoder
	w *csv.Writer
	b int64
	r int
}
func NewWriter(w io.Writer) *Writer {
	enc := New()
	return &Writer{e: *enc, w: csv.NewWriter(w)}
}
func (w *Writer) WriteColNames(st interface{}) error {
	cols, err := w.e.GetColNames(st)
	if err != nil {
		return err
	}
	w.r++
	return w.w.Write(cols)
}
func (w *Writer) WriteStruct(st interface{}) error {
	row, err := w.e.GetRow(st)
	if err != nil {
		return err
	}
	w.r++
	return w.w.Write(row)
}
func (w *Writer) WriteStructs(st interface{}) error {
	rows, err := w.e.Marshal(st)
	if err != nil {
		return err
	}
	w.r = len(rows)
	w.w.WriteAll(rows)
	w.w.Flush()
	return w.w.Error()
}
func (w *Writer) Write(row []string) error {
	err := w.w.Write(row)
	if err != nil {
		return err
	}
	w.r++
	return nil
}
func (w *Writer) WriteAll(data [][]string) error {
	err := w.w.WriteAll(data)
	if err != nil {
		return err
	}
	w.r = len(data)
	return nil
}
func (w *Writer) Flush() {
	w.w.Flush()
}
func (w *Writer) Error() error {
	return w.w.Error()
}
func (w *Writer) Rows() int {
	return w.r
}
func (w *Writer) Comma() rune {
	return w.w.Comma
}
func (w *Writer) SetComma(r rune) {
	w.w.Comma = r
}