diff options
| author | Marin Ivanov <[email protected]> | 2026-01-18 16:14:14 +0200 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2026-01-18 23:55:31 +0200 |
| commit | 465177182fae40d377d3e4f8e36d81a4edca43ba (patch) | |
| tree | 8362d899ecfaa784364408d3f8facdddfa566508 /colors.go | |
Diffstat (limited to 'colors.go')
| -rw-r--r-- | colors.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/colors.go b/colors.go new file mode 100644 index 0000000..0d04bd9 --- /dev/null +++ b/colors.go @@ -0,0 +1,15 @@ +package logging + +var Reset = "\033[0m" +var Red = "\033[31m" +var Green = "\033[32m" +var Yellow = "\033[33m" +var Blue = "\033[34m" +var Purple = "\033[35m" +var Cyan = "\033[36m" +var Gray = "\033[37m" +var White = "\033[97m" + +func colorize(s string, color string) string { + return color + s + Reset +} |
