Documentation ¶
Index ¶
- func ParseDelimiter(delim string, skip bool) string
- type CSVLoader
- type ImportLoader
- type Loader
- func (l *Loader) Create(file string) (*Loader, error)
- func (l *Loader) Describe() string
- func (l *Loader) Finish() error
- func (l *Loader) GetProgress() (int64, int64)
- func (l *Loader) Load() (map[string]interface{}, error)
- func (l *Loader) Start() error
- func (l *Loader) UpdateProgress()
- func (l *Loader) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDelimiter ¶
ParseDelimiter parses the delimiter for an escape sequence. This allows windows users to pass in \t since they cannot pass "`t" or "$Tab" to the program.
Types ¶
type CSVLoader ¶
type CSVLoader struct { SkipHeader bool SkipParseHeader bool Fields string Delimiter string Excel bool NullDelimiter string SkipSanitization bool // contains filtered or unexported fields }
CSVLoader ...
func (CSVLoader) Create ¶
func (csvl CSVLoader) Create(reader io.Reader, skipSanitization bool) ImportLoader
Create ...
type ImportLoader ¶
type ImportLoader interface { Load() (map[string]interface{}, error) Start() error Finish() error Describe() string Create(reader io.Reader, sanitize bool) ImportLoader }
ImportLoader ...
type Loader ¶
type Loader struct { File string SpecificLoader ImportLoader Bar *uiprogress.Bar SkipSanitization bool // contains filtered or unexported fields }
Loader ...
Click to show internal directories.
Click to hide internal directories.