Documentation
¶
Index ¶
- Constants
- func Bold(message string) string
- func BoldError(message string) string
- func BoldInfo(message string) string
- func BoldSuccess(message string) string
- func BoldWarning(message string) string
- func Dim(message string) string
- func Error(message string) string
- func FormatDuration(d time.Duration) string
- func Info(message string) string
- func Italic(message string) string
- func Muted(message string) string
- func NewlineAbove()
- func NewlineBelow()
- func PrintError(emoji, message string)
- func PrintInfo(indent int, label, value string)
- func PrintMuted(indent int, message string)
- func PrintSeparator()
- func PrintSuccess(emoji, message string)
- func PrintWarning(emoji, message string)
- func Success(message string) string
- func Underline(message string) string
- func Warning(message string) string
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 BoldSuccess ¶
func BoldWarning ¶
func FormatDuration ¶
func NewlineAbove ¶
func NewlineAbove()
func NewlineBelow ¶
func NewlineBelow()
func PrintError ¶
func PrintError(emoji, message string)
func PrintMuted ¶
func PrintSeparator ¶
func PrintSeparator()
func PrintSuccess ¶
func PrintSuccess(emoji, message string)
func PrintWarning ¶
func PrintWarning(emoji, message string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.