/
colors.go
39 lines (27 loc) · 1.61 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
// core - the "core" package is used to organize all primary libraries and utilities that are made use of across several aspects of the application.
//
// This can include anything from custom data structures, to colors for text output.
package core
import "github.com/fatih/color"
// ErrorColorUnderline - underlined bold red color useful for strong error messages
var ErrorColorUnderline = color.New(color.FgRed).Add(color.Underline)
// ErrorColorBold - bold red color useful for error messages
var ErrorColorBold = color.New(color.FgRed).Add(color.Bold)
// WarningColorBold - bold yellow color useful for warning messages
var WarningColorBold = color.New(color.FgYellow).Add(color.Bold)
// SuccessColorBold - bold green color useful for success messages
var SuccessColorBold = color.New(color.FgGreen).Add(color.Bold)
// GreenColor - green color for text output
var GreenColor = color.New(color.FgGreen)
// RedColor - red color for text output
var RedColor = color.New(color.FgRed)
// ErrorColorBoldIns - insert variant for variables, bold red color useful for error messages
var ErrorColorBoldIns = color.New(color.FgRed).Add(color.Bold).SprintFunc()
// GreenColorIns - insert variant for variables, green color for text output
var GreenColorIns = color.New(color.FgGreen).SprintFunc()
// RedColorIns - insert variant for variables, red color for text output
var RedColorIns = color.New(color.FgRed).SprintFunc()
// MagentaColor - magenta color for text output
var MagentaColor = color.New(color.FgMagenta)
// MagentaColorBold - bold magenta color for text output
var MagentaColorBold = color.New(color.FgMagenta).Add(color.Bold)