Pre-compute wrapped column info to avoid repeated map lookups
| 48 | |
| 49 | // Pre-compute wrapped column info to avoid repeated map lookups |
| 50 | type colInfo struct { |
| 51 | maxWidth int |
| 52 | needsTruncate bool |
| 53 | } |
| 54 | colInfos := make([]colInfo, cols) |
| 55 | for c := 0; c < cols; c++ { |
| 56 | if width, isWrapped := wrappedColumns[c]; isWrapped { |
nothing calls this directly
no outgoing calls
no test coverage detected