Documentation
¶
Overview ¶
Package csvutil provides ways to extract csv data from one or more files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVFiles ¶
type CSVFiles struct { Files []string // Indicates if the CSV files don't have a header. NoHeader bool // Indicates if the 0 value should be filtered. FilterZero bool }
CSVFiles - Struct containing CSV file information.
func (*CSVFiles) GetCSVColumns ¶
GetCSVColumns - Reads csv lines from *csvutil.CSVFiles and returns the requested columns. If the column lenghts are different, it will error out (necessary here? maybe the caller should check for that.)
func (*CSVFiles) GetFloat64Columns ¶
GetFloat64Columns - given a set of CSV files and a list of columns, it will return those columns as a slice of floats. If filterZero is set, it will ignore Zero values. If the column lenghts are different, it will error out (necessary here? maybe the caller should check for that.)
func (*CSVFiles) PrintCSVRows ¶
PrintCSVRows - prints the given csv rows