color/color.go
package color import ( "fmt" ) const ( red = 31 green = 32 blue = 34 ) func colorPrintln(s string, color int) { colorString := fmt.Sprintf("\x1b[%dm%s\x1b[0m", color, s) fmt.Println(colorString) } func BluePrintln(s string) { colorPrintln(s, blue) } func RedPrintln(s string) { colorPrintln(s, red) } func GreenPrintln(s string) { colorPrintln(s, green) }