Skip to content

tiantaozhang/goColorChange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goColorChange

golang color change stdout

This package is easy to use.You can Just use ChangeColorAndStyle() to change the foreground,background and the font style.See ccg.go const Color And Style.

Usage:

ChangeColorAndStyle(Underline, Green, None)
fmt.Println("underline green white")
ResetColor()
ChangeColorAndStyle(Flicker, Blue, None)
fmt.Println("Flicker Blue none")
ResetColor()

You can test with the tesh.sh.

LICENSE

About

golang color change stdout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors