color

package
v0.0.0-...-13800ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscardNonColorEscSeq outputMode
	OutputNonColorEscSeq
)

Variables

This section is empty.

Functions

func Black

func Black(message string) string

Black returns a black string

func BlackBold

func BlackBold(message string) string

BlackBold returns a black Bold string

func Blue

func Blue(message string) string

Blue returns a blue string

func BlueBold

func BlueBold(message string) string

BlueBold returns a blue Bold string

func Bold

func Bold(message string) string

func Cyan

func Cyan(message string) string

Cyan returns a cyan string

func CyanBold

func CyanBold(message string) string

CyanBold returns a cyan Bold string

func Gray

func Gray(message string) string

Gray returns a gray string

func GrayBold

func GrayBold(message string) string

GrayBold returns a gray Bold string

func Green

func Green(message string) string

Green returns a green string

func GreenBold

func GreenBold(message string) string

GreenBold returns a green Bold string

func Magenta

func Magenta(message string) string

Magenta returns a magenta string

func MagentaBold

func MagentaBold(message string) string

MagentaBold returns a magenta Bold string

func NewColorModeWritter

func NewColorModeWritter(w io.Writer, mode outputMode) io.Writer

NewColorModeWritter create and initialize a new ans color writter by specifying the output mode

func NewColorWritter

func NewColorWritter(w io.Writer) io.Writer

create and initialize a new ansi color writter using io.Writter as its initial content

func Red

func Red(message string) string

Red returns a red string

func RedBold

func RedBold(message string) string

RedBold returns a red Bold string

func White

func White(message string) string

White returns a white string

func WhiteBold

func WhiteBold(message string) string

WhiteBold returns a white Bold string

func Yellow

func Yellow(message string) string

Yellow returns a yellow string

func YellowBold

func YellowBold(message string) string

YellowBold returns a yellow Bold string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL