Categorygithub.com/codewinks/go-colors
repositorypackage
0.0.0-20190610010853-e55186548f1f
Repository: https://github.com/codewinks/go-colors.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Colors GitHub GoDoc Build Status

Colors lets you use colorized outputs in terms of ANSI Escape Codes in Go (Golang).

Support for windows untested/coming some day.

Install

go get github.com/codewinks/go-colors

Examples

import (
  "github.com/codewinks/go-colors"
)

func main(){
  colors.ShowExample()
}

Standard colors

	fmt.Println(colors.Green("Prints text in green."))
	fmt.Printf("Prints %s in blue.\n", colors.Blue("text"))

	fmt.Printf("Different colors such as %s, %s, %s, and %s.\n", colors.Blue("blue"), colors.Green("green"), colors.Red("red"), colors.Yellow("yellow"))

License

The MIT License (MIT) - see LICENSE.md for more details