-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.go
More file actions
39 lines (29 loc) · 694 Bytes
/
main.go
File metadata and controls
39 lines (29 loc) · 694 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
36
37
38
39
package gocolor
var _default string = "\x1b[0m"
func Default(text string) string {
return "\x1b[0m" + text
}
func Red(text string) string {
return "\x1b[31m" + text + _default
}
func Blue(text string) string {
return "\x1b[34m" + text + _default
}
func Yellow(text string) string {
return "\x1b[33m" + text + _default
}
func Green(text string) string {
return "\x1b[32m" + text + _default
}
func Purple(text string) string {
return "\x1b[35m" + text + _default
}
func Cyan(text string) string {
return "\x1b[36m" + text + _default
}
func White(text string) string {
return "\x1b[37m" + text + _default
}
func Black(text string) string {
return "\x1b[30m" + text + _default
}