easycsv icon indicating copy to clipboard operation
easycsv copied to clipboard

Can't read the first column by the name

Open OsemDing opened this issue 4 years ago • 1 comments

var entry struct { Product string name:"Product" }

if the "Product" is in the first column, it will fail.

debug output: Product did not appear in the first line

OsemDing avatar Feb 03 '21 15:02 OsemDing

When name:"ColumnName" is set in the field, easycsv treats the first line as the header row. Thus, the input CSV must be something like

Product,Price
Apple,100

What kind of data did you try to parse?

yunabe avatar Feb 05 '21 03:02 yunabe