MCPcopy
hub / github.com/pterm/pterm / WithData

Method WithData

table_printer.go:102–105  ·  view source on GitHub ↗

WithData returns a new TablePrinter with specific Data.

(data [][]string)

Source from the content-addressed store, hash-verified

100
101// WithData returns a new TablePrinter with specific Data.
102func (p TablePrinter) WithData(data [][]string) *TablePrinter {
103 p.Data = data
104 return &p
105}
106
107// WithCSVReader returns a new TablePrinter with specified Data extracted from CSV.
108func (p TablePrinter) WithCSVReader(reader *csv.Reader) *TablePrinter {

Callers 15

TestTablePrinter_RenderFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls