|
|
@ -6,8 +6,8 @@ type Color struct{} |
|
|
|
|
|
|
|
var c Color |
|
|
|
|
|
|
|
func (c Color) Cyan(t string) { |
|
|
|
fmt.Print("\x1b[36;1m") //cyan
|
|
|
|
func (c Color) DarkGray(t string) { |
|
|
|
fmt.Print("\x1b[30;1m") //red
|
|
|
|
fmt.Println(t) |
|
|
|
fmt.Print("\x1b[0m") //defaultColor
|
|
|
|
} |
|
|
@ -24,6 +24,12 @@ func (c Color) Green(t string) { |
|
|
|
fmt.Print("\x1b[0m") //defaultColor
|
|
|
|
} |
|
|
|
|
|
|
|
func (c Color) Yellow(t string) { |
|
|
|
fmt.Print("\x1b[33;1m") //green
|
|
|
|
fmt.Println(t) |
|
|
|
fmt.Print("\x1b[0m") //defaultColor
|
|
|
|
} |
|
|
|
|
|
|
|
func (c Color) Blue(t string) { |
|
|
|
fmt.Print("\x1b[34;1m") //blue
|
|
|
|
fmt.Println(t) |
|
|
@ -35,3 +41,9 @@ func (c Color) Purple(t string) { |
|
|
|
fmt.Println(t) |
|
|
|
fmt.Print("\x1b[0m") //defaultColor
|
|
|
|
} |
|
|
|
|
|
|
|
func (c Color) Cyan(t string) { |
|
|
|
fmt.Print("\x1b[36;1m") //cyan
|
|
|
|
fmt.Println(t) |
|
|
|
fmt.Print("\x1b[0m") //defaultColor
|
|
|
|
} |