Need help with go-colortext?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

205 Stars 17 Forks Other 39 Commits 4 Opened issues


Change the color of console text.

Services available


Need anything else?

Contributors list

go-colortext package GoSearch

This is a package to change the color of the text and background in the console, working both under Windows and other systems.

Under Windows, the console APIs are used. Otherwise, ANSI texts are output.

Docs: (packages that import ct)


ct.Foreground(Green, false)
fmt.Println("Green text starts here...")
ct.ChangeColor(Red, true, White, false)


BSD/MIT license

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.