-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils_ui.go
More file actions
35 lines (27 loc) · 760 Bytes
/
utils_ui.go
File metadata and controls
35 lines (27 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import (
"github.com/fatih/color"
)
// UI Helpers for standardized logging
func PrintSuccess(format string, a ...interface{}) {
color.Green("✅ "+format, a...)
}
func PrintError(format string, a ...interface{}) {
color.Red("⛔ "+format, a...)
}
func PrintInfo(format string, a ...interface{}) {
color.Cyan("ℹ️ "+format, a...)
}
func PrintWarning(format string, a ...interface{}) {
color.Yellow("⚠️ "+format, a...)
}
func PrintMiner(format string, a ...interface{}) {
// Gold/Yellow for Miner
c := color.New(color.FgYellow, color.Bold)
c.Printf("⛏️ "+format+"\n", a...)
}
func PrintNetwork(format string, a ...interface{}) {
// Blue for Network
c := color.New(color.FgBlue)
c.Printf("🌐 "+format+"\n", a...)
}