Versions in this module Expand all Collapse all v1 v1.1.0 Jul 12, 2021 Changes in this version + type CSVParser struct + Comma rune + Comment rune + SkipEmptyColumns bool + TrimLeadingSpace bool + func (c *CSVParser) Typed(data []byte) ([]map[string]interface{}, error) + func (c *CSVParser) Untyped(data []byte) ([]map[string]interface{}, error) v1.0.0 Jul 6, 2021 Changes in this version + var ErrDataIsNil = errors.New("data is nil") + var ErrInEmbeddedJSON = errors.New("unable to parse json in csv") + var ErrOnlyOneRowIsAllowedForBoolArray = errors.New("only one row is allowed for type 'bool,array'") + var ErrOnlyOneRowIsAllowedForFloat64Array = errors.New("only one row is allowed for type 'float64,array'") + var ErrOnlyOneRowIsAllowedForInt64Array = errors.New("only one row is allowed for type 'int64,array'") + var ErrOnlyOneRowIsAllowedForStringArray = errors.New("only one row is allowed for type 'string,array'") + var ErrUnsupportedType = errors.New("unsupported type format type") + type CSV struct + func NewCSV(comma, comment rune, trimLeadingSpace bool) *CSV + func (c *CSV) ToMap(data []byte) ([]map[string]interface{}, error) + func (c *CSV) ToTypedMap(data []byte) ([]map[string]interface{}, error)