mirror of
https://github.com/miguelmota/cointop
synced 2024-11-14 18:12:57 +00:00
40 lines
1.1 KiB
Go
40 lines
1.1 KiB
Go
package color
|
|
|
|
import "github.com/fatih/color"
|
|
|
|
// Color struct
|
|
type Color color.Color
|
|
|
|
var (
|
|
// Bold color
|
|
Bold = color.New(color.Bold).SprintFunc()
|
|
// Black color
|
|
Black = color.New(color.FgBlack).SprintFunc()
|
|
// BlackBg color
|
|
BlackBg = color.New(color.BgBlack, color.FgWhite).SprintFunc()
|
|
// White color
|
|
White = color.New(color.FgWhite).SprintFunc()
|
|
// WhiteBold bold
|
|
WhiteBold = color.New(color.FgWhite, color.Bold).SprintFunc()
|
|
// Yellow color
|
|
Yellow = color.New(color.FgYellow).SprintFunc()
|
|
// YellowBold color
|
|
YellowBold = color.New(color.FgYellow, color.Bold).SprintFunc()
|
|
// YellowBg color
|
|
YellowBg = color.New(color.BgYellow, color.FgBlack).SprintFunc()
|
|
// Green color
|
|
Green = color.New(color.FgGreen).SprintFunc()
|
|
// GreenBg color
|
|
GreenBg = color.New(color.BgGreen, color.FgBlack).SprintFunc()
|
|
// Red color
|
|
Red = color.New(color.FgRed).SprintFunc()
|
|
// Cyan color
|
|
Cyan = color.New(color.FgCyan).SprintFunc()
|
|
// CyanBg color
|
|
CyanBg = color.New(color.BgCyan, color.FgBlack).SprintFunc()
|
|
// Blue color
|
|
Blue = color.New(color.FgBlue).SprintFunc()
|
|
// BlueBg color
|
|
BlueBg = color.New(color.BgBlue).SprintFunc()
|
|
)
|