cfmt

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Foreground
	Reset   = "\x1b[0m"
	Black   = "\x1b[30;1m"
	Red     = "\x1b[31;1m"
	Green   = "\x1b[32;1m"
	Yellow  = "\x1b[33;1m"
	Blue    = "\x1b[34;1m"
	Magenta = "\x1b[35;1m"
	Cyan    = "\x1b[36;1m"
	White   = "\x1b[37;1m"

	// Background
	BGBlack   = "\x1b[40;5m"
	BGRed     = "\x1b[41;5m"
	BGGreen   = "\x1b[42;5m"
	BGYellow  = "\x1b[43;5m"
	BGBlue    = "\x1b[44;5m"
	BGMagenta = "\x1b[45;5m"
	BGCyan    = "\x1b[46;5m"
	BGWhite   = "\x1b[47;5m"

	// Other options
	Bold          = "\x1b[1;1m"
	Fuzzy         = "\x1b[2;1m"
	Italic        = "\x1b[3;1m"
	Underscore    = "\x1b[4;1m"
	Blink         = "\x1b[5;1m"
	FastBlink     = "\x1b[6;1m"
	Reverse       = "\x1b[7;1m"
	Concealed     = "\x1b[8;1m"
	Strikethrough = "\x1b[9;1m"
)

Variables

This section is empty.

Functions

func Print

func Print(s string)

Print with colours, but no other formatting.

func Printf

func Printf(s string, v ...interface{})

Printf with colours uses fmt.Printf().

Types

This section is empty.

Jump to

Keyboard shortcuts

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