build: go 1.24
We were running behind and there were quite some deprecations to update. This was mostly in the upstream copy/pasta package but seems quite minimal.
This commit is contained in:
16
vendor/github.com/charmbracelet/lipgloss/table/rows.go
generated
vendored
16
vendor/github.com/charmbracelet/lipgloss/table/rows.go
generated
vendored
@ -111,3 +111,19 @@ func (m *Filter) Rows() int {
|
||||
|
||||
return j
|
||||
}
|
||||
|
||||
// dataToMatrix converts an object that implements the Data interface to a table.
|
||||
func dataToMatrix(data Data) (rows [][]string) {
|
||||
numRows := data.Rows()
|
||||
numCols := data.Columns()
|
||||
rows = make([][]string, numRows)
|
||||
|
||||
for i := 0; i < numRows; i++ {
|
||||
rows[i] = make([]string, numCols)
|
||||
|
||||
for j := 0; j < numCols; j++ {
|
||||
rows[i][j] = data.At(i, j)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user