chore(doc): Document code
All checks were successful
Go-Tests / tests (push) Successful in 2m13s
Go-Tests / sonar (push) Successful in 48s

This commit is contained in:
2025-09-15 13:36:22 +02:00
parent e3cad1e561
commit f3c1bf39fe
5 changed files with 142 additions and 92 deletions

View File

@@ -22,26 +22,30 @@ const (
const reset = "\033[0m"
// Info prints an informational message.
func Info(msg ...any) {
message("", IconInfo, msg...)
}
// Warn prints a warning message
// Warn prints a warning message.
func Warn(msg ...any) {
orange := "\033[38;5;214m"
message(orange, IconWarning, msg...)
}
// Success prints a success message.
func Success(msg ...any) {
green := "\033[38;5;34m"
message(green, IconSuccess, msg...)
}
// Failure prints a failure message.
func Failure(msg ...any) {
red := "\033[38;5;196m"
message(red, IconFailure, msg...)
}
// Log prints a message with a custom icon.
func Log(icon Icon, msg ...any) {
message("", icon, msg...)
}