Documentation
¶
Index ¶
- Variables
- type Parser
- func NewCsvParser(reader io.Reader, lazyQuotes bool, data interface{}) (*Parser, error)
- func NewCsvParserWithoutHeader(reader io.Reader, lazyQuotes bool, data interface{}) (*Parser, error)
- func NewParser(reader io.Reader, lazyQuotes bool, data interface{}, t string) (p *Parser, err error)
- func NewParserWithoutHeader(reader io.Reader, lazyQuotes bool, data interface{}, t string) (p *Parser, err error)
- func NewTsvParser(reader io.Reader, lazyQuotes bool, data interface{}) (*Parser, error)
- func NewTsvParserWithoutHeader(reader io.Reader, lazyQuotes bool, data interface{}) (*Parser, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Delimiters = map[string]rune{
"tsv": '\t',
"csv": ',',
}
Delimiters contains a map like "extension": "delimiter"
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { Headers []string Reader *csv.Reader Data interface{} // contains filtered or unexported fields }
Parser has information for parser
func NewCsvParser ¶
NewCsvParser creates new CSV parser with given io.Reader
func NewCsvParserWithoutHeader ¶
func NewCsvParserWithoutHeader(reader io.Reader, lazyQuotes bool, data interface{}) (*Parser, error)
NewCsvParserWithoutHeader creates new CSV parser without header with given io.Reader
func NewParser ¶
func NewParser(reader io.Reader, lazyQuotes bool, data interface{}, t string) (p *Parser, err error)
NewParser creates new DSV parser with given io.Reader and delimiter type
func NewParserWithoutHeader ¶
func NewParserWithoutHeader(reader io.Reader, lazyQuotes bool, data interface{}, t string) (p *Parser, err error)
NewParserWithoutHeader creates new DSV parser with given io.Reader and delimiter type
func NewTsvParser ¶
NewTsvParser creates new TSV parser with given io.Reader
Click to show internal directories.
Click to hide internal directories.