import "github.com/qor/exchange/backends/csv"
csv.go reader.go writer.go xlsx2csv.go
type CSV struct {
// contains filtered or unexported fields
}
CSV CSV struct
New initialize CSV backend, config is option, the last one will be used if there are more than one configs
NewReader new csv reader
NewWriter new csv writer
Config CSV exchange config
Rows CSV rows struct
Header CSV header column
Next read next rows from CSV
func (rows Rows) ReadRow() (*resource.MetaValues, error)
ReadRow read row from CSV
Total CSV total rows
type Writer struct { *CSV Resource *exchange.Resource Writer *csv.Writer // contains filtered or unexported fields }
Writer CSV writer struct
Flush flush all changes
WriteHeader write header
func (writer *Writer) WriteRow(record interface{}) (*resource.MetaValues, error)
WriteRow write row
Package csv imports 15 packages (graph) and is imported by 7 packages. Updated 2019-04-11. Refresh now. Tools for package owners.