I am trying to just ignore the error csv.ErrFieldCountin our code, but cannot just look at this error. What am I doing wrong here?
record, err := reader.Read()
if err != nil {
if err == csv.ErrFieldCount {
return nil
}
return err
}
But when I run the code, the last line of the csv file gives me this panised error line 11535, column 0: wrong number of fields in line
source
share