Versions in this module Expand all Collapse all v0 v0.27.0 May 10, 2024 Changes in this version + type HeaderMaker struct + AllPart []string + Footer bool + Header bool + IsBefore bool + LongestEachPart map[string]int + func (h HeaderMaker) Make(p Printer, Items ...*item.FileInfo) v0.25.2 Jan 15, 2024 v0.25.1 Jan 15, 2024 v0.25.0 Jan 15, 2024 Changes in this version + const TreeASCII + const TreeRectangle + const TreeUnicode + var ASCIIStyle = table.StyleDefault + var CustomTermSize uint + var DefaultTBStyle = ASCIIStyle + var DefaultTreeStyle = TreeUnicode + var IncludeHyperlink = false + var Output io.Writer = os.Stdout + var UNICODEStyle = table.StyleRounded + func DefaultTB(w table.Writer) + func RawPrint(toPrint ...any) (n int, err error) + func WidthLen(str string) int + func WidthNoHyperLinkLen(str string) int + type Across struct + func (a *Across) Print(items ...*item.FileInfo) + func (h Across) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h Across) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h Across) DisablePostHook() + func (h Across) DisablePreHook() + func (h Across) EnablePostHook() + func (h Across) EnablePreHook() + type Byline struct + func (b *Byline) Print(i ...*item.FileInfo) + func (h Byline) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h Byline) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h Byline) DisablePostHook() + func (h Byline) DisablePreHook() + func (h Byline) EnablePostHook() + func (h Byline) EnablePreHook() + type CSVPrinter struct + func (c *CSVPrinter) Print(s ...*item.FileInfo) + func (h CSVPrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h CSVPrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h CSVPrinter) DisablePostHook() + func (h CSVPrinter) DisablePreHook() + func (h CSVPrinter) EnablePostHook() + func (h CSVPrinter) EnablePreHook() + type CommaPrint struct + func (c *CommaPrint) Print(items ...*item.FileInfo) + func (h CommaPrint) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h CommaPrint) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h CommaPrint) DisablePostHook() + func (h CommaPrint) DisablePreHook() + func (h CommaPrint) EnablePostHook() + func (h CommaPrint) EnablePreHook() + type Content interface + String func() string + type FitTerminal struct + func (f *FitTerminal) Print(i ...*item.FileInfo) + func (h FitTerminal) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h FitTerminal) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h FitTerminal) DisablePostHook() + func (h FitTerminal) DisablePreHook() + func (h FitTerminal) EnablePostHook() + func (h FitTerminal) EnablePreHook() + type HTMLPrinter struct + func (h HTMLPrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h HTMLPrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h HTMLPrinter) DisablePostHook() + func (h HTMLPrinter) DisablePreHook() + func (h HTMLPrinter) EnablePostHook() + func (h HTMLPrinter) EnablePreHook() + func (p *HTMLPrinter) Print(s ...*item.FileInfo) + type Hook interface + AddAfterPrint func(...func(Printer, ...*item.FileInfo)) + AddBeforePrint func(...func(Printer, ...*item.FileInfo)) + DisablePostHook func() + DisablePreHook func() + EnablePostHook func() + EnablePreHook func() + type ItemContent struct + Content Content + No int + Prefix string + Suffix string + func (i *ItemContent) AddPrefix(add string) + func (i *ItemContent) AddSuffix(add string) + func (i *ItemContent) NO() int + func (i *ItemContent) SetPrefix(s string) + func (i *ItemContent) SetSuffix(s string) + func (i *ItemContent) String() string + type JsonPrinter struct + Extra []any + func (h JsonPrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h JsonPrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h JsonPrinter) DisablePostHook() + func (h JsonPrinter) DisablePreHook() + func (h JsonPrinter) EnablePostHook() + func (h JsonPrinter) EnablePreHook() + func (j *JsonPrinter) Print(items ...*item.FileInfo) + type MDPrinter struct + func (h MDPrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h MDPrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h MDPrinter) DisablePostHook() + func (h MDPrinter) DisablePreHook() + func (h MDPrinter) EnablePostHook() + func (h MDPrinter) EnablePreHook() + func (m *MDPrinter) Print(s ...*item.FileInfo) + type PrettyPrinter interface + AddFooter func(footer string) + AddHeader func(headers string) + SetTitle func(title string) + type Printer interface + Print func(s ...*item.FileInfo) + func NewAcross() Printer + func NewByline() Printer + func NewCSVPrinter() Printer + func NewCommaPrint() Printer + func NewFitTerminal() Printer + func NewHTMLPrinter() Printer + func NewJsonPrinter() Printer + func NewMDPrinter() Printer + func NewTSVPrinter() Printer + func NewTablePrinter(opts ...func(writer table.Writer)) Printer + func NewZero() Printer + type StringContent string + func (s StringContent) String() string + type TSVPrinter struct + func (h TSVPrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h TSVPrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h TSVPrinter) DisablePostHook() + func (h TSVPrinter) DisablePreHook() + func (h TSVPrinter) EnablePostHook() + func (h TSVPrinter) EnablePreHook() + func (t *TSVPrinter) Print(s ...*item.FileInfo) + type TablePrinter struct + func (h TablePrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h TablePrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h TablePrinter) DisablePostHook() + func (h TablePrinter) DisablePreHook() + func (h TablePrinter) EnablePostHook() + func (h TablePrinter) EnablePreHook() + func (t *TablePrinter) AddFooter(footer string) + func (t *TablePrinter) AddHeader(headers string) + func (t *TablePrinter) Print(s ...*item.FileInfo) + func (t *TablePrinter) PrintBase(fn func() string, s ...*item.FileInfo) + func (t *TablePrinter) SetTitle(title string) + type TreePrinter struct + NO bool + func NewTreePrinter() *TreePrinter + func (h TreePrinter) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h TreePrinter) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h TreePrinter) DisablePostHook() + func (h TreePrinter) DisablePreHook() + func (h TreePrinter) EnablePostHook() + func (h TreePrinter) EnablePreHook() + func (t *TreePrinter) Print(s ...*item.FileInfo) + type Zero struct + func (h Zero) AddAfterPrint(f ...func(Printer, ...*item.FileInfo)) + func (h Zero) AddBeforePrint(f ...func(Printer, ...*item.FileInfo)) + func (h Zero) DisablePostHook() + func (h Zero) DisablePreHook() + func (h Zero) EnablePostHook() + func (h Zero) EnablePreHook() + func (z *Zero) Print(items ...*item.FileInfo)