diff --git a/csv_test.go b/csv_test.go index 244a9a3..f920c4e 100644 --- a/csv_test.go +++ b/csv_test.go @@ -1,6 +1,3 @@ -// Package csv returns which columns have syntax errors on a per-line basis when reading CSV. -// It also has the capability to convert the character encoding to UTF-8 if the CSV character -// encoding is not UTF-8. package csv import ( diff --git a/parser.go b/parser.go index 01f2f4f..8b9a634 100644 --- a/parser.go +++ b/parser.go @@ -26,7 +26,7 @@ func (c *CSV) parseStructTag(structSlicePointer any) error { if err != nil { return err } - csv.ruleSet = ruleSet + c.ruleSet = ruleSet default: return fmt.Errorf("csv: v is not a slice or array, got %v", elem.Kind()) }