-
Notifications
You must be signed in to change notification settings - Fork 658
/
color.go
34 lines (29 loc) · 898 Bytes
/
color.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
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package logging
// Color ...
type Color string
// Colors
const (
Black Color = "\033[0;30m"
DarkGray Color = "\033[1;30m"
Red Color = "\033[0;31m"
LightRed Color = "\033[1;31m"
Green Color = "\033[0;32m"
LightGreen Color = "\033[1;32m"
Orange Color = "\033[0;33m"
Yellow Color = "\033[1;33m"
Blue Color = "\033[0;34m"
LightBlue Color = "\033[1;34m"
Purple Color = "\033[0;35m"
LightPurple Color = "\033[1;35m"
Cyan Color = "\033[0;36m"
LightCyan Color = "\033[1;36m"
LightGray Color = "\033[0;37m"
White Color = "\033[1;37m"
Reset Color = "\033[0;0m"
Bold Color = "\033[;1m"
Reverse Color = "\033[;7m"
)
// Wrap ...
func (lc Color) Wrap(text string) string { return string(lc) + text + string(Reset) }