color

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SuccessString       Formatter = color.GreenString
	BoldHiSuccessString           = color.New(color.Bold).Add(color.FgHiGreen).SprintfFunc()
	FailureString                 = color.RedString
	BoldHiFailureString           = color.New(color.Bold).Add(color.FgHiRed).SprintfFunc()
	WarningString                 = color.YellowString
	BoldHiWarningString           = color.New(color.Bold).Add(color.FgHiYellow).SprintfFunc()
	IDString                      = color.HiCyanString
	BoldString                    = color.New(color.Bold).SprintfFunc()
	BlackString                   = color.New(color.FgHiBlack).SprintfFunc()
)

Functions

This section is empty.

Types

type Color

type Color int
const (
	Success Color = iota
	BoldHiSuccess
	Failure
	BoldHiFailure
	Warning
	BoldHiWarning
	ID
	Bold
	Black
)

type Formatter

type Formatter func(format string, a ...interface{}) string

Jump to

Keyboard shortcuts

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