Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVParser ¶
type CSVParser struct {
FilePath string
Separator rune
HasHeader bool
Encoding encoding.Encoding // 支持 UTF-8/GBK
SkipBadLines bool
}
CSVParser 配置解析器
func (*CSVParser) ParseStruct ¶
func (p *CSVParser) ParseStruct(slicePtr interface{}, handler StructHandler) error
ParseStruct 流式解析 CSV 并映射到 struct
Click to show internal directories.
Click to hide internal directories.