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

Method printRow

cli/ctl/common/table/table.go:126–132  ·  view source on GitHub ↗
(columns []string, rowIdx int)

Source from the content-addressed store, hash-verified

124}
125
126func (t *Table) printRow(columns []string, rowIdx int) {
127 for i := 0; i < len(columns); i++ {
128 str := columns[i]
129 fmt.Fprintf(t.lineOut, "%s%s", padRight(str, SPACE, t.maxWidth[i]), SPACE)
130 }
131 fmt.Fprint(t.lineOut, NEWLINE)
132}

Callers 1

printRowsMethod · 0.95

Calls 1

padRightFunction · 0.85

Tested by

no test coverage detected