MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / colInfo

Struct colInfo

ui.go:50–53  ·  view source on GitHub ↗

Pre-compute wrapped column info to avoid repeated map lookups

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected