Documentation ¶
Index ¶
- Constants
- func ParsePath(path string, n, m int) ([]engine.Kombinacia, error)
- func SetHeader(header []string) func(w *CsvMaxWriter)
- func SetHeaders(headers [][]string) func(w *CsvMaxWriter)
- func SetSubdir(subdir string) func(w *CsvMaxWriter)
- func SetSuffixFunc(sf SuffixFunc) func(w *CsvMaxWriter)
- type CsvMaxWriter
- type Parser
- type Reader
- type SuffixFunc
Constants ¶
View Source
const ( // Standardne pouzivame ako oddelovat ";" Comma = ';' // Maximum Excel rows.. MaxWrite = 500000 )
Variables ¶
This section is empty.
Functions ¶
func SetHeader ¶
func SetHeader(header []string) func(w *CsvMaxWriter)
func SetHeaders ¶
func SetHeaders(headers [][]string) func(w *CsvMaxWriter)
func SetSubdir ¶
func SetSubdir(subdir string) func(w *CsvMaxWriter)
func SetSuffixFunc ¶
func SetSuffixFunc(sf SuffixFunc) func(w *CsvMaxWriter)
Types ¶
type CsvMaxWriter ¶
type CsvMaxWriter struct { // suffix suboru Suffix SuffixFunc // contains filtered or unexported fields }
func NewCsvMaxWriter ¶
func NewCsvMaxWriter(fileName, workingDir string, options ...func(*CsvMaxWriter)) *CsvMaxWriter
func (*CsvMaxWriter) Close ¶
func (w *CsvMaxWriter) Close() error
Close zatvori subor a zapise vsetky data v buffer
func (*CsvMaxWriter) TotalRowsWriten ¶
func (w *CsvMaxWriter) TotalRowsWriten() int
TotalRowsWriten vrati pocet zapisanych riadkov
func (*CsvMaxWriter) Write ¶
func (w *CsvMaxWriter) Write(record []string) error
Write zapise retazce record do suboru
type SuffixFunc ¶
type SuffixFunc func() string
func DefaultSuffix ¶
func DefaultSuffix(workingDir string) SuffixFunc
func EmptySuffix ¶
func EmptySuffix() SuffixFunc
func IntSuffix ¶
func IntSuffix() SuffixFunc
Click to show internal directories.
Click to hide internal directories.