Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PCsvReader ¶
type PCsvReader struct {
WithHeader bool
FieldsPerRecord int
FilePaths []string
ReadingState map[string]int // map[filepath]line
}
func NewPCsvReader ¶
func NewPCsvReader(filePaths []string, withHeader bool) *PCsvReader
func (*PCsvReader) Read ¶
func (pr *PCsvReader) Read(dataCh chan []string)
type PCsvWriter ¶
type PCsvWriter struct {
Lines int
FileNo int
CsvFile *os.File
MaxLines int
FilePrefix string
OutputDir string
Title []string
}
func NewPCsvWriter ¶
func NewPCsvWriter(filePrefix, outputDir string) *PCsvWriter
func (*PCsvWriter) Write ¶
func (pw *PCsvWriter) Write(dataCh chan []string)
Click to show internal directories.
Click to hide internal directories.