pprint

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bold    = lipgloss.NewStyle().Bold(true)
	Blue    = lipgloss.NewStyle().Foreground(lipgloss.Blue)
	Green   = lipgloss.NewStyle().Foreground(lipgloss.Green)
	Cyan    = lipgloss.NewStyle().Foreground(lipgloss.Cyan)
	Red     = lipgloss.NewStyle().Foreground(lipgloss.Red)
	Magenta = lipgloss.NewStyle().Foreground(lipgloss.Magenta)
	Yellow  = lipgloss.NewStyle().Foreground(lipgloss.Yellow)
	Black   = lipgloss.NewStyle().Foreground(lipgloss.BrightBlack)

	SuccessPrefix = Green.Render("[+]")
	InfoPrefix    = Blue.Render("[i]")
	WarnPrefix    = Yellow.Render("[*]")
	ErrorPrefix   = Red.Render("[-]")
)

Functions

func Error

func Error(format string, a ...any) string

func GetBanner

func GetBanner() string

func Info

func Info(format string, a ...any) string

func Success

func Success(format string, a ...any) string

func Table

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

func TruncateString

func TruncateString(s string, maxLen int) string

func Warn

func Warn(format string, a ...any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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