Documentation
¶
Overview ¶
Package log provides zero-dependency colored terminal output.
Index ¶
- Constants
- func Amber(s string) string
- func Blue(s string) string
- func BoldText(s string) string
- func Debug(format string, args ...any)
- func DimText(s string) string
- func Error(format string, args ...any)
- func Green(s string) string
- func Muted(s string) string
- func Output() io.Writer
- func Pad(s string, width int) string
- func Red(s string) string
- func SetOutput(w io.Writer)
- func Status(format string, args ...any)
- func Style(code, text string) string
- func Success(format string, args ...any)
- func UnderlineText(s string) string
- func Verbose(format string, args ...any)
- func VisualLen(s string) int
- func Warning(format string, args ...any)
- func White(s string) string
- func Yellow(s string) string
Constants ¶
View Source
const ( Reset = "\x1b[0m" Bold = "\x1b[1m" Dim = "\x1b[2m" Underline = "\x1b[4m" // 256-color: amber accent (#fbbf24) FgAmber = "\x1b[38;5;214m" BoldAmber = "\x1b[1;38;5;214m" // Standard colors BoldGreen = "\x1b[1;32m" BoldRed = "\x1b[1;31m" BoldYellow = "\x1b[1;38;5;220m" BoldWhite = "\x1b[1;37m" BoldBlue = "\x1b[1;34m" BoldMagenta = "\x1b[1;35m" FgWhite = "\x1b[37m" FgDim = "\x1b[38;5;245m" )
ANSI escape codes - LeakIX-inspired amber palette.
Variables ¶
This section is empty.
Functions ¶
func UnderlineText ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.