csv

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL