WriteCSVRow writes given row to a comma-separated-values (CSV) file (where comma = any delimiter, specified in the delim arg)
(w io.Writer, row int, delim Delims)
| 465 | // WriteCSVRow writes given row to a comma-separated-values (CSV) file |
| 466 | // (where comma = any delimiter, specified in the delim arg) |
| 467 | func (dt *Table) WriteCSVRow(w io.Writer, row int, delim Delims) error { |
| 468 | cw := csv.NewWriter(w) |
| 469 | cw.Comma = delim.Rune() |
| 470 | err := dt.WriteCSVRowWriter(cw, row, 0) |
| 471 | cw.Flush() |
| 472 | return err |
| 473 | } |
| 474 | |
| 475 | // WriteCSVRowWriter uses csv.Writer to write one row |
| 476 | func (dt *Table) WriteCSVRowWriter(cw *csv.Writer, row int, ncol int) error { |
nothing calls this directly
no test coverage detected