Skip to content

merryituxz/go-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-colorcolorful print for go

install

go get -u github.com/merryituxz/go-color

usage

func main() {
	color.Red().Println("hello").
		Green().Println("hello").
		Yellow().Println("hello").
		Blue().Println("hello").
		Magenta().Println("hello").
		Cyan().Println("hello")
}

output:

red

green

yellow

blue

magenta

cyan


func main() {
    color.Red().Println("hello").
    	Println("hello").
    	Println("hello")
}

output:

red

red

red


func main() {
    color.Println("black")
    color.Red().Println("red")
    color.Println("black")
}

output:

black

red

black

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages