arnaucube
arnaucube/flock-botnetPublic Self-hosted repository
flock-botnet/color.go
color.goRaw
 1package main
 2
 3import "fmt"
 4
 5type Color struct{}
 6
 7var c Color
 8
 9func (c Color) DarkGray(t string) {
10	fmt.Print("\x1b[30;1m") //red
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) Yellow(t string) {
28	fmt.Print("\x1b[33;1m") //green
29	fmt.Println(t)
30	fmt.Print("\x1b[0m") //defaultColor
31}
32
33func (c Color) Blue(t string) {
34	fmt.Print("\x1b[34;1m") //blue
35	fmt.Println(t)
36	fmt.Print("\x1b[0m") //defaultColor
37}
38
39func (c Color) Purple(t string) {
40	fmt.Print("\x1b[35;1m") //purple
41	fmt.Println(t)
42	fmt.Print("\x1b[0m") //defaultColor
43}
44
45func (c Color) Cyan(t string) {
46	fmt.Print("\x1b[36;1m") //cyan
47	fmt.Println(t)
48	fmt.Print("\x1b[0m") //defaultColor
49}