Documentation
¶
Index ¶
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Exit(code int, args ...any)
- func Exitf(code int, msg string, args ...any)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func PrintCode(code string, lang string)
- func Success(args ...any)
- func Successf(format string, args ...any)
- func Warn(args ...any)
- func Warnf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(args ...any)
Debug prints a debug-level message to stdout if DEBUG is enabled.
func PrintCode ¶
PrintCode prints a multi-line code snippet or file content to stdout with optional syntax highlighting. lang controls the syntax highlighter; pass "toml", "yaml", "json", "go", etc. If lang is empty or "auto", the lexer will be auto-detected. If highlighting fails or colors are disabled, the code is printed as plain text. Intended for TOML, YAML, JSON, Go, etc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.