src

Go monorepo.
Log | Files | Refs

commit e659052ca30eaf75fb7d90b8872a7866f8951807
parent 029882f55b8c5fa23ddcf5de8dea9a3930e9c568
Author: dwrz <dwrz@dwrz.net>
Date:   Sat, 24 Dec 2022 14:52:57 +0000

Add color pkg

Diffstat:
Apkg/color/color.go | 48++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+), 0 deletions(-)

diff --git a/pkg/color/color.go b/pkg/color/color.go @@ -0,0 +1,48 @@ +package color + +type Color string + +const ( + Reset = "\u001b[0m" + + Bold = "\u001b[1m" + Underline = "\u001b[4m" + Inverse = "\u001b[7m" + Italic = "\u001b[3m" + + Black = "\u001b[30m" + Blue = "\u001b[34m" + Cyan = "\u001b[36m" + Green = "\u001b[32m" + Purple = "\u001b[35m" + Red = "\u001b[31m" + White = "\u001b[37m" + Yellow = "\u001b[33m" + + BrightBlack = "\u001b[30;1m" + BrightBlue = "\u001b[34;1m" + BrightCyan = "\u001b[36;1m" + BrightGreen = "\u001b[32;1m" + BrightMagenta = "\u001b[35;1m" + BrightRed = "\u001b[31;1m" + BrightWhite = "\u001b[37;1m" + BrightYellow = "\u001b[33;1m" + + BackgroundBlack = "\u001b[40m" + BackgroundBlue = "\u001b[44m" + BackgroundCyan = "\u001b[46m" + BackgroundGreen = "\u001b[42m" + BackgroundMagenta = "\u001b[45m" + BackgroundRed = "\u001b[41m" + BackgroundWhite = "\u001b[47m" + BackgroundYellow = "\u001b[43m" + + BackgroundBrightBlack = "\u001b[40;1m" + BackgroundBrightBlue = "\u001b[44;1m" + BackgroundBrightCyan = "\u001b[46;1m" + BackgroundBrightGreen = "\u001b[42;1m" + BackgroundBrightMagenta = "\u001b[45;1m" + BackgroundBrightRed = "\u001b[41;1m" + BackgroundBrightWhite = "\u001b[47;1m" + BackgroundBrightYellow = "\u001b[43;1m" +)