Documentation ¶
Index ¶
- type CsvWriter
- func (p *CsvWriter) Flush()
- func (p *CsvWriter) FlushFile()
- func (p *CsvWriter) HeaderUsage(val []string)
- func (p *CsvWriter) SetHeader(val []string, required []string)
- func (p *CsvWriter) SetOrder(order []string)
- func (p *CsvWriter) SortByCols(depth int)
- func (p *CsvWriter) WriteCsvLine(val []string)
- func (p *CsvWriter) WriteCsvLineRaw(val []string)
- func (p *CsvWriter) WriteHeader()
- type EntAttr
- type Lines
- type SortedLines
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvWriter ¶
type CsvWriter struct {
// contains filtered or unexported fields
}
A CsvWriter is a wrapper around csv.Writer
func NewCsvWriter ¶
NewCsvWriter returns a new CsvWriter instance
func (*CsvWriter) Flush ¶
func (p *CsvWriter) Flush()
Flush the current line cache into the CSV file
func (*CsvWriter) FlushFile ¶
func (p *CsvWriter) FlushFile()
Flush the current line cache into the CSV file
func (*CsvWriter) HeaderUsage ¶
HeaderUsage updates the header usage for a single row
func (*CsvWriter) SortByCols ¶
SortByCols sorts the current line cache by depth
func (*CsvWriter) WriteCsvLine ¶
WriteCsvLine writes a single slice of values to the CSV file
func (*CsvWriter) WriteCsvLineRaw ¶
WriteCsvLineRaw writes a single slice of values to the CSV file
func (*CsvWriter) WriteHeader ¶
func (p *CsvWriter) WriteHeader()
type SortedLines ¶
SortedLines is a Lines object extended by information on the sorting depth (1 = sort by first column, 2 = sort by first and second column, and so on)
func (SortedLines) Len ¶
func (l SortedLines) Len() int
func (SortedLines) Less ¶
func (l SortedLines) Less(i, j int) bool
func (SortedLines) Swap ¶
func (l SortedLines) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.