json

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemErrorJSON

type ItemErrorJSON struct {
	Name  string `json:"name"`
	Error string `json:"error"`
}

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)

Jump to

Keyboard shortcuts

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