🔨 update print.go to use anonymous struct

This commit is contained in:
Aykhan Shahsuvarov 2024-06-01 18:51:25 +04:00
parent e59eab4198
commit 16a93a3dfc

View File

@ -5,7 +5,7 @@ import (
"os" "os"
) )
type colors struct { var Colors = struct {
reset string reset string
Red string Red string
Green string Green string
@ -16,9 +16,7 @@ type colors struct {
Cyan string Cyan string
Gray string Gray string
White string White string
} }{
var Colors = colors{
reset: "\033[0m", reset: "\033[0m",
Red: "\033[31m", Red: "\033[31m",
Green: "\033[32m", Green: "\033[32m",