From 82b79bfd1d2aade10ef811fc708fa11193c9a3a5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 23:33:50 +0800 Subject: ansiec: Use const, not var --- internal/ansiec/colors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/ansiec/colors.go') diff --git a/internal/ansiec/colors.go b/internal/ansiec/colors.go index 2068e90..8e5f54b 100644 --- a/internal/ansiec/colors.go +++ b/internal/ansiec/colors.go @@ -3,7 +3,7 @@ package ansiec -var ( +const ( Black = "\x1b[30m" Red = "\x1b[31m" Green = "\x1b[32m" @@ -14,7 +14,7 @@ var ( White = "\x1b[37m" ) -var ( +const ( BrightBlack = "\x1b[30;1m" BrightRed = "\x1b[31;1m" BrightGreen = "\x1b[32;1m" -- cgit v1.2.3