- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AddRow (0.04 sec)
-
istioctl/pkg/writer/table/writer.go
func (c *ColoredTableWriter) AddHeader(names ...string) { cells := make([]Cell, 0) for _, name := range names { cells = append(cells, NewCell(name)) } c.header = Row{Cells: cells} } func (c *ColoredTableWriter) AddRow(obj interface{}) { c.rows = append(c.rows, c.addRowFunc(obj)) } func (c *ColoredTableWriter) Flush() { output := c.getTableOutput(c.rows) if len(output) == 0 { return } sep := getMaxWidths(output)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 09:43:25 UTC 2024 - 2.7K bytes - Viewed (0)