output

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Green = lipgloss.Color("#32be78")

	Dim = lipgloss.Color("#666666")

	StyleHeader = lipgloss.NewStyle().Bold(true).Foreground(white)
	StyleGreen  = lipgloss.NewStyle().Foreground(Green)
	StyleRed    = lipgloss.NewStyle().Foreground(red)
	StyleDim    = lipgloss.NewStyle().Foreground(Dim)
)

Functions

func Card

func Card(title string, pairs [][2]string)

Card prints a group of key-value pairs in a bordered box.

func Error

func Error(msg string)

Error prints a styled error to stderr.

func Info

func Info(msg string)

Info prints a styled info message.

func JSON

func JSON(v any)

JSON marshals v as indented JSON to stdout.

func KeyValue

func KeyValue(label, value string)

KeyValue prints a label: value pair with consistent indentation.

func ProgressBar

func ProgressBar(percent float64, width int) string

ProgressBar renders an inline progress bar. Call with \r prefix for updates.

func Success

func Success(msg string)

Success prints a styled success message.

func Table

func Table(headers []string, rows [][]string)

Table prints an aligned table with styled headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL