output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 5 Imported by: 0

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