generated from atomicgo/template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.go
35 lines (26 loc) · 1.08 KB
/
styles.go
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 color
var (
// ANSI colors
Black = NewStyle(ANSIBlack, nil).Sprint
BrightBlack = NewStyle(ANSIBrightBlack, nil).Sprint
Red = NewStyle(ANSIRed, nil).Sprint
BrightRed = NewStyle(ANSIBrightRed, nil).Sprint
Green = NewStyle(ANSIGreen, nil).Sprint
BrightGreen = NewStyle(ANSIBrightGreen, nil).Sprint
Yellow = NewStyle(ANSIYellow, nil).Sprint
BrightYellow = NewStyle(ANSIBrightYellow, nil).Sprint
Blue = NewStyle(ANSIBlue, nil).Sprint
BrigthBlue = NewStyle(ANSIBrightBlue, nil).Sprint
Magenta = NewStyle(ANSIMagenta, nil).Sprint
BrightMagenta = NewStyle(ANSIBrightMagenta, nil).Sprint
Cyan = NewStyle(ANSICyan, nil).Sprint
BrightCyan = NewStyle(ANSIBrightCyan, nil).Sprint
White = NewStyle(ANSIWhite, nil).Sprint
BrightWhite = NewStyle(ANSIBrightWhite, nil).Sprint
// Special colors
Success = NewStyle(ANSIBrightGreen, nil).Sprint
Info = NewStyle(ANSIBrightBlue, nil).Sprint
Warning = NewStyle(ANSIBrightYellow, nil).Sprint
Error = NewStyle(ANSIBrightRed, nil).Sprint
Fatal = NewStyle(ANSIBrightRed, nil, Bold).Sprint
)