ui

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset    = "\033[0m"
	BoldCode = "\033[1m"
	DimCode  = "\033[90m"
)

ANSI color codes for use in fmt.Println and string concatenation

Variables

This section is empty.

Functions

func Blue

func Blue(text string) string

func Bold

func Bold(text string) string

func BoxBottom

func BoxBottom(width int) string

func BoxTop

func BoxTop(width int) string

Box drawing characters for UI

func Checkmark

func Checkmark() string

Checkmark and X mark with colors

func Crossmark

func Crossmark() string

func Cyan

func Cyan(text string) string

func Dim

func Dim(text string) string

func Error

func Error(text string) string

func ErrorBold

func ErrorBold(text string) string

func Gray

func Gray(text string) string

func Green

func Green(text string) string

func Info

func Info(text string) string

func InfoBold

func InfoBold(text string) string

func InfoIcon

func InfoIcon() string

func MagentaBold

func MagentaBold(text string) string

func MagentaText

func MagentaText(text string) string

func Primary

func Primary(text string) string

func PrimaryBold

func PrimaryBold(text string) string

func PrintBox

func PrintBox(text string, colorFunc func(string) string, width int)

PrintBox prints text in a colored box

func PrintError

func PrintError(message string)

PrintError prints an error message

func PrintHeader

func PrintHeader(title, subtitle string, width int)

PrintHeader prints a header without box

func PrintSection

func PrintSection(title string)

PrintSection prints a section header

func PrintSuccess

func PrintSuccess(message string)

PrintSuccess prints a success message

func PrintWarning

func PrintWarning(message string)

PrintWarning prints a warning message

func Red

func Red(text string) string

func Rocket

func Rocket() string

func Success

func Success(text string) string

Color functions for common use cases

func SuccessBold

func SuccessBold(text string) string

func Warning

func Warning(text string) string

func WarningBold

func WarningBold(text string) string

func WarningIcon

func WarningIcon() string

func Yellow

func Yellow(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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