Documentation
¶
Overview ¶
Package common provides shared UI helpers used across the Tornado UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCell ¶
FormatCell converts a database cell value to its string representation. Nil values become "NULL", []byte becomes string, and everything else uses default formatting.
func PadToWidth ¶
PadToWidth pads a string with spaces on the right to reach the target width.
func TruncateToWidth ¶
TruncateToWidth truncates a string to fit within the given display width. It uses ANSI-aware truncation when available, falling back to rune-based truncation for plain strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.