gorainbow lets you use a rainbow version of a string ready to print it to the terminal. Install go get github.com/giancarlosio/gorainbow Example import "gorainbow" str := Rainbow("Hello world") fmt.Println(str)