Documentation ¶
Index ¶
- type CsvFormatter
- func (*CsvFormatter) DefaultTimeStyle() string
- func (*CsvFormatter) FileError(w io.Writer, err error, path string)
- func (*CsvFormatter) FolderHeader(w io.Writer, path string, itemCount int)
- func (*CsvFormatter) FolderTail(w io.Writer, path string)
- func (f *CsvFormatter) FormatItem(tableObj *table.Table, item any) ([]string, error)
- func (f *CsvFormatter) FormatValue(colName string, value string) (string, error)
- func (*CsvFormatter) LinkTargetSep() string
- func (*CsvFormatter) LongLinkTarget() bool
- func (*CsvFormatter) LongSet(cols map[string]bool)
- func (f *CsvFormatter) PrintError(w io.Writer, err error)
- func (*CsvFormatter) PrintItems(w io.Writer, tableObj *table.Table, items iface.FormattedItemList) error
- func (*CsvFormatter) SizeFormat() SizeFormat
- func (*CsvFormatter) TableHeader(w io.Writer, tableObj *table.Table)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvFormatter ¶
type CsvFormatter struct {
// contains filtered or unexported fields
}
func New ¶
func New() *CsvFormatter
func (*CsvFormatter) DefaultTimeStyle ¶
func (*CsvFormatter) DefaultTimeStyle() string
func (*CsvFormatter) FileError ¶
func (*CsvFormatter) FileError(w io.Writer, err error, path string)
func (*CsvFormatter) FolderHeader ¶
func (*CsvFormatter) FolderHeader(w io.Writer, path string, itemCount int)
func (*CsvFormatter) FolderTail ¶
func (*CsvFormatter) FolderTail(w io.Writer, path string)
func (*CsvFormatter) FormatItem ¶
func (f *CsvFormatter) FormatItem(tableObj *table.Table, item any) ([]string, error)
func (*CsvFormatter) FormatValue ¶
func (f *CsvFormatter) FormatValue(colName string, value string) (string, error)
previously csvString
func (*CsvFormatter) LinkTargetSep ¶
func (*CsvFormatter) LinkTargetSep() string
func (*CsvFormatter) LongLinkTarget ¶
func (*CsvFormatter) LongLinkTarget() bool
func (*CsvFormatter) LongSet ¶
func (*CsvFormatter) LongSet(cols map[string]bool)
func (*CsvFormatter) PrintError ¶
func (f *CsvFormatter) PrintError(w io.Writer, err error)
func (*CsvFormatter) PrintItems ¶
func (*CsvFormatter) PrintItems(w io.Writer, tableObj *table.Table, items iface.FormattedItemList) error
func (*CsvFormatter) SizeFormat ¶
func (*CsvFormatter) SizeFormat() SizeFormat
func (*CsvFormatter) TableHeader ¶
func (*CsvFormatter) TableHeader(w io.Writer, tableObj *table.Table)
Click to show internal directories.
Click to hide internal directories.