go-console-color

you can use it to add background color to your console text

๐ŸŽˆ First

go get -u github.com/z-spring/go-console-color

๐Ÿงจ Second

you can add alias with this module

import color "github.com/z-spring/go-console-color"

๐ŸŽญ Third

Just use ConsoleColor(inputColor string,target string) to output color

Example:

s:=color.ConsoleColor(color.Blue,"hello there!") 

That’s all~

GitHub

View Github