color

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package color defines color code for pretty print in linux shell, windows is not supported

Index

Constants

View Source
const (
	RedCode = 31

	GreenCode = 32

	YellowCode = 33

	BlueCode = 34

	PurpleCode = 35

	CyanCode = 36

	GrayCode = 37
)
View Source
const (
	RedStart = "\x1b[31m"

	GreenStart = "\x1b[32m"

	YellowStart = "\x1b[33m"

	BlueStart = "\x1b[34m"

	PurpleStart = "\x1b[35m"

	CyanStart = "\x1b[36m"

	GrayStart = "\x1b[37m"

	End = "\x1b[0m"
)

Variables

This section is empty.

Functions

func Blue

func Blue(str string) string

func Cyan

func Cyan(str string) string

func Gray

func Gray(str string) string

func Green

func Green(str string) string

func Purple

func Purple(str string) string

func Red

func Red(str string) string

func Yellow

func Yellow(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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