Documentation ¶
Index ¶
- Variables
- type FileSplitter
- func (fs *FileSplitter) Close() (err error)
- func (fs *FileSplitter) CsvStart()
- func (fs *FileSplitter) CsvWriter(record []string)
- func (fs *FileSplitter) GetFilename() (filename string, err error)
- func (fs *FileSplitter) Rollover() (err error)
- func (fs *FileSplitter) ShowFilename()
- func (fs *FileSplitter) Start() (err error)
- func (fs *FileSplitter) Write(input []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var HandlePermissions = os.O_TRUNC | os.O_CREATE
View Source
var Permissions = os.FileMode(0644)
Functions ¶
This section is empty.
Types ¶
type FileSplitter ¶
type FileSplitter struct { Initialized bool MaxLines int CurrentLinesInFile int CurrentOffset int CurrentFile *os.File Pattern string CSVWriter *csv.Writer }
func (*FileSplitter) Close ¶
func (fs *FileSplitter) Close() (err error)
func (*FileSplitter) CsvStart ¶
func (fs *FileSplitter) CsvStart()
func (*FileSplitter) CsvWriter ¶
func (fs *FileSplitter) CsvWriter(record []string)
func (*FileSplitter) GetFilename ¶
func (fs *FileSplitter) GetFilename() (filename string, err error)
func (*FileSplitter) Rollover ¶
func (fs *FileSplitter) Rollover() (err error)
func (*FileSplitter) ShowFilename ¶
func (fs *FileSplitter) ShowFilename()
func (*FileSplitter) Start ¶
func (fs *FileSplitter) Start() (err error)
Click to show internal directories.
Click to hide internal directories.