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