go get -u github.com/merryituxz/go-color
func main() {
color.Red().Println("hello").
Green().Println("hello").
Yellow().Println("hello").
Blue().Println("hello").
Magenta().Println("hello").
Cyan().Println("hello")
}
output:
red
green
yellow
blue
magenta
cyan
func main() {
color.Red().Println("hello").
Println("hello").
Println("hello")
}
output:
red
red
red
func main() {
color.Println("black")
color.Red().Println("red")
color.Println("black")
}
output:
black
red
black