color

package
v0.0.0-...-62694dd Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Overview

Package color colorizes output sent to a terminal

Index

Constants

This section is empty.

Variables

View Source
var (
	// Enabled decides whether the colorization functions (e.g. Green()) are no-ops.
	Enabled = true
)

Functions

func Bold

func Bold(s string) string

Bold returns s wrapped in ANSI codes which cause terminals to display it bold.

func BoldGreen

func BoldGreen(s string) string

BoldGreen returns s wrapped in ANSI codes which cause terminals to display it bold green.

func BoldMagenta

func BoldMagenta(s string) string

BoldMagenta returns s wrapped in ANSI codes which cause terminals to display it bold magenta.

func DarkGray

func DarkGray(s string) string

DarkGray returns s wrapped in ANSI codes which cause terminals to display it dark gray.

func Green

func Green(s string) string

Green returns s wrapped in ANSI codes which cause terminals to display it green.

func Magenta

func Magenta(s string) string

Magenta returns s wrapped in ANSI codes which cause terminals to display it magenta.

Types

This section is empty.

Jump to

Keyboard shortcuts

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