MCPcopy Create free account
hub / github.com/cogentcore/core / WriteCSVRow

Method WriteCSVRow

tensor/table/io.go:467–473  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

465// WriteCSVRow writes given row to a comma-separated-values (CSV) file
466// (where comma = any delimiter, specified in the delim arg)
467func (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
476func (dt *Table) WriteCSVRowWriter(cw *csv.Writer, row int, ncol int) error {

Callers

nothing calls this directly

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 3

WriteCSVRowWriterMethod · 0.95
RuneMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected