Discover Packages
github.com/7c/aptbase
internal
ui
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jun 20, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ui provides small helpers for colorful, consistent terminal output.
Dim prints faint, secondary text.
Error prints an error line in red to stderr.
Heading prints a bold underlined section heading.
Info prints an informational line in cyan.
func KeyValues(pairs [][2]string )
KeyValues prints aligned key/value pairs (for "show" style output).
Success prints a green success line prefixed with a check mark.
Table renders rows aligned in columns with a colored header and a separator
rule. Column widths are computed from the visible (rune) length of cells, so
colored cells do not break alignment — unlike text/tabwriter, which counts
ANSI escape bytes.
Warn prints a warning line in yellow to stderr.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.