-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable.go
20 lines (19 loc) · 867 Bytes
/
variable.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package gomsg
//print打印内容的颜色
var (
greenBg = string([]byte{27, 91, 57, 55, 59, 52, 50, 109})
whiteBg = string([]byte{27, 91, 57, 48, 59, 52, 55, 109})
yellowBg = string([]byte{27, 91, 57, 48, 59, 52, 51, 109})
redBg = string([]byte{27, 91, 57, 55, 59, 52, 49, 109})
blueBg = string([]byte{27, 91, 57, 55, 59, 52, 52, 109})
magentaBg = string([]byte{27, 91, 57, 55, 59, 52, 53, 109})
cyanBg = string([]byte{27, 91, 57, 55, 59, 52, 54, 109})
green = string([]byte{27, 91, 51, 50, 109})
white = string([]byte{27, 91, 51, 55, 109})
yellow = string([]byte{27, 91, 51, 51, 109})
red = string([]byte{27, 91, 51, 49, 109})
blue = string([]byte{27, 91, 51, 52, 109})
magenta = string([]byte{27, 91, 51, 53, 109})
cyan = string([]byte{27, 91, 51, 54, 109})
reset = string([]byte{27, 91, 48, 109})
)