2018-03-30 19:08:53 +00:00
|
|
|
package color
|
|
|
|
|
|
|
|
import "github.com/fatih/color"
|
|
|
|
|
2018-12-23 08:10:41 +00:00
|
|
|
// Color struct
|
|
|
|
type Color color.Color
|
|
|
|
|
2018-03-30 19:08:53 +00:00
|
|
|
var (
|
2019-06-09 06:18:07 +00:00
|
|
|
// Bold color
|
|
|
|
Bold = color.New(color.Bold).SprintFunc()
|
2018-04-05 09:25:50 +00:00
|
|
|
// Black color
|
|
|
|
Black = color.New(color.FgBlack).SprintFunc()
|
2018-05-02 22:47:40 +00:00
|
|
|
// BlackBg color
|
|
|
|
BlackBg = color.New(color.BgBlack, color.FgWhite).SprintFunc()
|
2018-03-31 00:20:07 +00:00
|
|
|
// White color
|
2018-03-30 19:08:53 +00:00
|
|
|
White = color.New(color.FgWhite).SprintFunc()
|
2018-03-31 10:49:23 +00:00
|
|
|
// WhiteBold bold
|
2018-04-06 03:58:56 +00:00
|
|
|
WhiteBold = color.New(color.FgWhite, color.Bold).SprintFunc()
|
2018-04-16 02:42:07 +00:00
|
|
|
// Yellow color
|
|
|
|
Yellow = color.New(color.FgYellow).SprintFunc()
|
2018-05-09 08:57:35 +00:00
|
|
|
// YellowBold color
|
|
|
|
YellowBold = color.New(color.FgYellow, color.Bold).SprintFunc()
|
2018-04-25 20:44:22 +00:00
|
|
|
// YellowBg color
|
|
|
|
YellowBg = color.New(color.BgYellow, color.FgBlack).SprintFunc()
|
2018-03-31 00:20:07 +00:00
|
|
|
// Green color
|
2018-03-30 19:08:53 +00:00
|
|
|
Green = color.New(color.FgGreen).SprintFunc()
|
2018-04-06 03:58:56 +00:00
|
|
|
// GreenBg color
|
|
|
|
GreenBg = color.New(color.BgGreen, color.FgBlack).SprintFunc()
|
2018-03-31 00:20:07 +00:00
|
|
|
// Red color
|
|
|
|
Red = color.New(color.FgRed).SprintFunc()
|
|
|
|
// Cyan color
|
|
|
|
Cyan = color.New(color.FgCyan).SprintFunc()
|
2018-04-05 09:25:50 +00:00
|
|
|
// CyanBg color
|
2018-04-06 03:58:56 +00:00
|
|
|
CyanBg = color.New(color.BgCyan, color.FgBlack).SprintFunc()
|
|
|
|
// Blue color
|
|
|
|
Blue = color.New(color.FgBlue).SprintFunc()
|
2018-04-05 09:25:50 +00:00
|
|
|
// BlueBg color
|
|
|
|
BlueBg = color.New(color.BgBlue).SprintFunc()
|
2018-03-30 19:08:53 +00:00
|
|
|
)
|