ahmadrosid / go-color

🌈 Format colored text in your Go application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Color

Utility to print colored text in golang.

Usage

import "github.com/ahmadrosid/go-color/color"

func main() {
	println(color.Format(color.RED, "I'm red!"))
	println(color.Format(color.BLUE, "I'm blue!"))
	println(color.Format(color.GREEN, "I'm green!"))
	println(color.Format(color.YELLOW, "I'm yellow!"))
	println(color.Format(color.PURPLE, "I'm purple!"))
}

Example

Go Color

About

🌈 Format colored text in your Go application.


Languages

Language:Go 100.0%