diff --git a/csvparser.go b/csvparser.go index ac73014..4b46243 100644 --- a/csvparser.go +++ b/csvparser.go @@ -14,8 +14,8 @@ type CsvParser struct { ignore string maxFieldIndex int } -func (p *csvParser) FieldCount() int { - return maxFieldIndex + 1 +func (p *CsvParser) FieldCount() int { + return p.maxFieldIndex + 1 } /* * delimiters: string with all delimiter chars