📅  最后修改于: 2022-03-11 14:44:59.252000             🧑  作者: Mango
// this code is written in Golang
colorReset := "\033[0m"
colorRed := "\033[31m"
colorGreen := "\033[32m"
colorYellow := "\033[33m"
colorBlue := "\033[34m"
colorPurple := "\033[35m"
colorCyan := "\033[36m"
colorWhite := "\033[37m"
fmt.Println(string(colorRed), "test")
fmt.Println(string(colorGreen), "test")
fmt.Println(string(colorYellow), "test")
fmt.Println(string(colorBlue), "test")
fmt.Println(string(colorPurple), "test")
fmt.Println(string(colorWhite), "test")
fmt.Println(string(colorCyan), "test", string(colorReset))
fmt.Println("next")