mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-18 18:39:43 +00:00
🔨 update print.go to use anonymous struct
This commit is contained in:
parent
e59eab4198
commit
16a93a3dfc
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user