EncapsulateCustomGreen takes as input a string and print it with the green color.
(alert string, inp string)
| 62 | // EncapsulateCustomGreen takes as input a string and |
| 63 | // print it with the green color. |
| 64 | func EncapsulateCustomGreen(alert string, inp string) { |
| 65 | // Create a custom print function for convenience |
| 66 | green := color.New(color.FgGreen).PrintfFunc() |
| 67 | green("[ %s ] ", alert) |
| 68 | fmt.Println(inp) |
| 69 | } |
| 70 | |
| 71 | // EncapsulateCustomRed takes as input a string and |
| 72 | // print it with the red color. |