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

# 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

# Packages

No description provided by the author

# Functions

Black – Output text in Black.
BlackBold – Output text in BlackBold.
Blue – Output text in Blue.
BlueBold – Output text in BlueBold.
Bold – Output text in Bold.
Cyan – Output text in Cyan.
CyanBold – Output text in CyanBold.
Get – Returns formatted text with color.
Green – Output text in Green.
GreenBold – Output text in GreenBold.
Purple – Output text in Purple.
PurpleBold – Output text in PurpleBold.
Red – Output text in Red.
RedBold – Output text in RedBold.
ShowExample - Print out all different colors that are supported.
White – Output text in White.
WhiteBold – Output text in WhiteBold.
Yellow – Output text in Yellow.
YellowBold – Output text in YellowBold.

# Constants

BLACK – BLACK.
BLACKBOLD – BLACKBOLD.
BLUE – BLUE.
BLUEBOLD – BLUEBOLD.
BOLD – BOLD.
CYAN – CYAN.
CYANBOLD – CYANBOLD.
GREEN – GREEN.
GREENBOLD – GREENBOLD.
NC – Reset Color.
PURPLE – PURPLE.
PURPLEBOLD – PURPLEBOLD.
RED – RED.
REDBOLD – REDBOLD.
WHITE – WHITE.
WHITEBOLD – WHITEBOLD.
YELLOW – YELLOW.
YELLOWBOLD – YELLOWBOLD.