-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.go
27 lines (25 loc) · 1008 Bytes
/
colors.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
/*
* Author: yangzhao
* CreatedAt: 2020/3/20
* Description: error
*/
package error
//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})
disableColor = false
)