modulepackage
1.0.0
Repository: https://github.com/daviddengcn/go-colortext.git
Documentation: pkg.go.dev
# README
go-colortext package 
This is a package to change the color of the text and background in the console, working both under Windows and other systems.
Under Windows, the console APIs are used. Otherwise, ANSI texts are output.
Docs: http://godoc.org/github.com/daviddengcn/go-colortext (packages that import ct)
Usage:
ct.Foreground(Green, false)
fmt.Println("Green text starts here...")
ct.ChangeColor(Red, true, White, false)
fmt.Println(...)
ct.ResetColor()
LICENSE
BSD/MIT license
# Packages
Package ctfmt is a handful wrapping of go-colortext (ct) package and fmt package.
# Functions
Background changes the background color.
ChangeColor sets the foreground and background colors.
Foreground changes the foreground color.
ResetColor resets the foreground and background to original colors.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No change of color.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Writer is the io.Writer where ANSI escape codes will be written to.
# Type aliases
Color is the type of color to be set.