Package kut provides column cutting for CSV (RFC 4180) files.
EOL can be used as the End in a ColRange to include all remaining columns.
A ColRange specifies a range of columns to include. Column numbers begin at 1. Both Start and End are inclusive.
A Cutter reads from an input CSV and writes only the specified columns to an output CSV.
NewCutter returns a Cutter that reads from r and writes to w.
Delimiter returns the field delimiter.
Scan advances one record on the input, outputting only the columns specified in Ranges. If there is no input left to read, Scan returns io.EOF.
ScanAll advances to the end of the input, outputting only the columns specified in Ranges. Because ScanAll deliberately reads until EOF, it does not report EOF as an error.
SetDelimiter sets the field delimiter, which defaults to a comma.