From a4e386cbe600939d00809271906a5b460eb033d0 Mon Sep 17 00:00:00 2001 From: reugn Date: Fri, 15 Mar 2024 09:28:57 +0200 Subject: [PATCH] chore: make color variables constants --- cli/color/color.go | 2 +- cli/spinner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/color/color.go b/cli/color/color.go index 9f324fb..9f462ab 100644 --- a/cli/color/color.go +++ b/cli/color/color.go @@ -2,7 +2,7 @@ package color import "fmt" -var ( +const ( reset = "\033[0m" red = "\033[31m" green = "\033[32m" diff --git a/cli/spinner.go b/cli/spinner.go index bd80bcf..da72766 100644 --- a/cli/spinner.go +++ b/cli/spinner.go @@ -9,7 +9,7 @@ import ( const ( moveCursorBackward = "\033[%dD" clearLineFromCursor = "\033[K" - progressRune = rune('.') // 46 + progressRune = '.' ) type spinner struct {