Versions in this module Expand all Collapse all v1 v1.0.0 Nov 15, 2022 Changes in this version + var ErrorFieldNotFound = fmt.Errorf("field not found in header") + var ErrorInvalidIndex = fmt.Errorf("index must be a non negative integer") + var ErrorMalformedCsvTag = fmt.Errorf("you need to specify either the header or index") + var ErrorMissingCustomSetter = fmt.Errorf("cannot use custom data type without implementing CustomSetter interface") + var ErrorUnexportedField = fmt.Errorf("csv tags may not be set on unexported fields") + var ErrorUnsupportedDataType = fmt.Errorf("must implement CustomSetter interface when using unsupported data types") + type CsvTagDefError struct + CsvTag string + Err error + FieldName string + func (e CsvTagDefError) Error() string + func (e CsvTagDefError) Unwrap() error + type CustomSetter interface + CustomSetter func(fieldName string, value string) (err error) + type FieldNotFoundError struct + Err error + FieldName string + HeaderName string + func (e FieldNotFoundError) Error() string + func (e FieldNotFoundError) Unwrap() error + type Parser struct + func NewParser(file io.Reader, options ParserOptions) (p Parser) + func (p *Parser) ParseHeader(structPointer interface{}) (err error) + func (p *Parser) ReadRecord(structPointer interface{}) (err error) + type ParserOptions struct + Delimiter rune + type SetValueError struct + Err error + FieldName string + Value string + func (e SetValueError) Error() string + func (e SetValueError) Unwrap() error