Documentation
¶
Index ¶
- type CustomParser
- func (parser CustomParser) GetCSVData(f interface{}, decoded []byte, n int) (parsed []interface{}, err error)
- func (parser CustomParser) GetPRNData(f interface{}, decoded []byte, n int) (parsed []interface{}, err error)
- func (parser CustomParser) Parse(f interface{}) (results []interface{}, error error)
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomParser ¶
type CustomParser struct {
File string
Separator rune
SkipFirstLine bool
SkipEmptyValues bool
PRNReader func(raw string) (line []string, err error)
CustomDecoder *encoding.Decoder
}
func (CustomParser) GetCSVData ¶
func (parser CustomParser) GetCSVData(f interface{}, decoded []byte, n int) (parsed []interface{}, err error)
Method to get CSV data parsed into struct
func (CustomParser) GetPRNData ¶
func (parser CustomParser) GetPRNData(f interface{}, decoded []byte, n int) (parsed []interface{}, err error)
Method to get PRN data parsed into struct
func (CustomParser) Parse ¶
func (parser CustomParser) Parse(f interface{}) (results []interface{}, error error)
Click to show internal directories.
Click to hide internal directories.