Helper to find column by accessor key
(columns []TableColumn[T], key string)
| 104 | |
| 105 | // Helper to find column by accessor key |
| 106 | func findColumnByKey[T any](columns []TableColumn[T], key string) *TableColumn[T] { |
| 107 | for _, col := range columns { |
| 108 | if col.AccessorKey == key { |
| 109 | return &col |
| 110 | } |
| 111 | } |
| 112 | return nil |
| 113 | } |
| 114 | |
| 115 | // Sort data by column |
| 116 | func sortData[T any](data []T, col TableColumn[T], direction string) []T { |
no outgoing calls
no test coverage detected