Documentation
¶
Index ¶
- type Import
- func (i *Import) Import() ([]any, int64, error)
- func (i *Import) ImportWithHandler(handler JSONHandler) (int64, error)
- func (i *Import) SetBigLine(bigLine bool)
- func (i *Import) SetDataRow(dataRow int)
- func (i *Import) SetFieldRow(fieldRow int)
- func (i *Import) SetFields(fields []string)
- func (i *Import) SetSep(sep string)
- type JSONHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Import ¶
type Import struct {
FieldRow int `json:"field_row"` // 字段所在行
DataRow int `json:"data_row"` // 数据开始行
Sep string `json:"sep"` // csv 分割符
// contains filtered or unexported fields
}
func (*Import) ImportWithHandler ¶
func (i *Import) ImportWithHandler(handler JSONHandler) (int64, error)
func (*Import) SetBigLine ¶
func (*Import) SetDataRow ¶
func (*Import) SetFieldRow ¶
Click to show internal directories.
Click to hide internal directories.