Skip to content

Change color and background of text in Go within seconds

Notifications You must be signed in to change notification settings

jexlor/Colorado

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Colorado 🎨 PkgGoDev

Simple and fast micro-library for colored text and symbols.

Colors supported: Black, Red, Green, Yellow, Blue, Purple, Cyan, White and more..

All of these colors can be accesed through Color function from colorado package

Example:

package main

import (
	"fmt"

	"github.com/jexlor/colorado"
)

func main() {
	text := "red text with bright blue background"
	fmt.Println(colorado.Color(text, colorado.Red, colorado.BrightBlueBg))
}

Example without background color:

func main() {
	text := "red text"
	fmt.Println(colorado.Color(text, colorado.Red, ""))
}

To install the package using go get, run the following command in your terminal:

go get github.com/jexlor/colorado

Releases

No releases published

Packages

No packages published

Languages