MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / findColumnByKey

Function findColumnByKey

tsunami/ui/table.go:106–113  ·  view source on GitHub ↗

Helper to find column by accessor key

(columns []TableColumn[T], key string)

Source from the content-addressed store, hash-verified

104
105// Helper to find column by accessor key
106func 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
116func sortData[T any](data []T, col TableColumn[T], direction string) []T {

Callers 1

genTableRenderFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected