mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
internal/tablewriter: fix AppendBulk to not overwrite lines
This commit is contained in:
parent
c114886ebc
commit
b236c5e916
1 changed files with 2 additions and 2 deletions
|
|
@ -58,12 +58,12 @@ func (t *Table) SetFooter(footer []string) {
|
|||
t.footer = footer
|
||||
}
|
||||
|
||||
// AppendBulk sets all data rows for the table at once, replacing any existing rows.
|
||||
// AppendBulk appends one or more data rows to the table.
|
||||
//
|
||||
// Each row must have the same number of columns as the headers, or validation
|
||||
// will fail during Render().
|
||||
func (t *Table) AppendBulk(rows [][]string) {
|
||||
t.rows = rows
|
||||
t.rows = append(t.rows, rows...)
|
||||
}
|
||||
|
||||
// Render outputs the complete table to the configured writer. The table is rendered
|
||||
|
|
|
|||
Loading…
Reference in a new issue