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