MCPcopy Create free account
hub / github.com/deepflowio/deepflow / Append

Method Append

cli/ctl/common/table/table.go:83–94  ·  view source on GitHub ↗

Append row to table

(row []string)

Source from the content-addressed store, hash-verified

81
82// Append row to table
83func (t *Table) Append(row []string) {
84 rowSize := len(t.headers)
85 if rowSize > t.colSize {
86 t.colSize = rowSize
87 }
88
89 for i, v := range row {
90 // Detect string width
91 t.parseDimension(v, i)
92 }
93 t.lines = append(t.lines, row)
94}
95
96// Render table output
97func (t *Table) Render() {

Callers 1

AppendBulkMethod · 0.95

Calls 1

parseDimensionMethod · 0.95

Tested by

no test coverage detected