argos/color.go
color.goRaw
1package main
2
3import "fmt"
4
5type Color struct{}
6
7var c Color
8
9func (c Color) Cyan(t string) {
10 fmt.Print("\x1b[36;1m") //cyan
11 fmt.Println(t)
12 fmt.Print("\x1b[0m") //defaultColor
13}
14
15func (c Color) Red(t string) {
16 fmt.Print("\x1b[31;1m") //red
17 fmt.Println(t)
18 fmt.Print("\x1b[0m") //defaultColor
19}
20
21func (c Color) Green(t string) {
22 fmt.Print("\x1b[32;1m") //green
23 fmt.Println(t)
24 fmt.Print("\x1b[0m") //defaultColor
25}
26
27func (c Color) Blue(t string) {
28 fmt.Print("\x1b[34;1m") //blue
29 fmt.Println(t)
30 fmt.Print("\x1b[0m") //defaultColor
31}
32
33func (c Color) Purple(t string) {
34 fmt.Print("\x1b[35;1m") //purple
35 fmt.Println(t)
36 fmt.Print("\x1b[0m") //defaultColor
37}