SetRow sets the value of all the cells of the specified row from the specified map indexed by column id.
(row int, values map[string]interface{})
| 387 | // SetRow sets the value of all the cells of the specified row from |
| 388 | // the specified map indexed by column id. |
| 389 | func (t *Table) SetRow(row int, values map[string]interface{}) { |
| 390 | |
| 391 | if row < 0 || row >= len(t.rows) { |
| 392 | panic(tableErrInvRow) |
| 393 | } |
| 394 | t.setRow(row, values) |
| 395 | t.recalc() |
| 396 | } |
| 397 | |
| 398 | // SetCell sets the value of the cell specified by its row and column id |
| 399 | // The function panics if the passed row or column id is invalid |