ui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorReset  = "\033[0m"
	ColorGreen  = "\033[32m" // Success
	ColorRed    = "\033[31m" // Errors
	ColorBlue   = "\033[34m" // Info
	ColorYellow = "\033[33m" // Warnings
	ColorCyan   = "\033[36m" // Highlights
	ColorGray   = "\033[90m" // Muted text
)

ANSI Color Constants

View Source
const (
	FormatBold      = "\033[1m"
	FormatDim       = "\033[2m"
	FormatItalic    = "\033[3m"
	FormatUnderline = "\033[4m"

	// Specific reset codes (don't reset colors)
	ResetBoldDim   = "\033[22m" // Reset bold and dim
	ResetItalic    = "\033[23m" // Reset italic
	ResetUnderline = "\033[24m" // Reset underline
)

ANSI Text Formatting Constants

View Source
const (
	EmojiStart     = "✨"
	EmojiStop      = "🛑"
	EmojiStatus    = "⏱️"
	EmojiStats     = "📊"
	EmojiLog       = "📝"
	EmojiManual    = "✍️"
	EmojiInit      = "⚙️"
	EmojiExport    = "📤"
	EmojiMilestone = "🎯"
	EmojiSuccess   = "✅"
	EmojiError     = "❌"
	EmojiWarning   = "⚠️"
	EmojiInfo      = "ℹ️"
)

Emoji Constants

Variables

This section is empty.

Functions

func Bold

func Bold(message string) string

func BoldError

func BoldError(message string) string

func BoldInfo

func BoldInfo(message string) string

func BoldSuccess

func BoldSuccess(message string) string

func BoldWarning

func BoldWarning(message string) string

func Dim

func Dim(message string) string

func Error

func Error(message string) string

func FormatDuration

func FormatDuration(d time.Duration) string

func Info

func Info(message string) string

func Italic

func Italic(message string) string

func Muted

func Muted(message string) string

func NewlineAbove

func NewlineAbove()

func NewlineBelow

func NewlineBelow()

func PrintError

func PrintError(emoji, message string)

func PrintInfo

func PrintInfo(indent int, label, value string)

func PrintMuted

func PrintMuted(indent int, message string)

func PrintSeparator

func PrintSeparator()

func PrintSuccess

func PrintSuccess(emoji, message string)

func PrintWarning

func PrintWarning(emoji, message string)

func Success

func Success(message string) string

func Underline

func Underline(message string) string

func Warning

func Warning(message 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