From 16a93a3dfcec86a7dfb176bbaefbb48d9567bc16 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Sat, 1 Jun 2024 18:51:25 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20update=20print.go=20to=20use=20a?= =?UTF-8?q?nonymous=20struct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/print.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/print.go b/utils/print.go index 505178c..1c721cc 100644 --- a/utils/print.go +++ b/utils/print.go @@ -5,7 +5,7 @@ import ( "os" ) -type colors struct { +var Colors = struct { reset string Red string Green string @@ -16,9 +16,7 @@ type colors struct { Cyan string Gray string White string -} - -var Colors = colors{ +}{ reset: "\033[0m", Red: "\033[31m", Green: "\033[32m",