colorcli

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HeaderWhite is function to generate a white header string
	HeaderWhite = color.New(color.BgHiWhite, color.FgHiBlack, color.Bold).SprintFunc()
	// HeaderGreen is function to generate a green header string
	HeaderGreen = color.New(color.BgHiGreen, color.FgHiWhite, color.Bold).SprintFunc()
	// HeaderYellow is function to generate a yellow header string
	HeaderYellow = color.New(color.BgHiYellow, color.FgHiWhite, color.Bold).SprintFunc()
	// HeaderRed is function to generate a red header string
	HeaderRed = color.New(color.BgHiRed, color.FgHiWhite, color.Bold).SprintFunc()

	// Green is function to generate a green string
	Green = color.New(color.FgHiGreen).SprintFunc()
	// Yellow is function to generate a yellow string
	Yellow = color.New(color.FgHiYellow).SprintFunc()
	// Red is function to generate a red string
	Red = color.New(color.FgHiRed).SprintFunc()
)

Functions

func Errorf

func Errorf(format string, a ...interface{})

Errorf formats according to the format specifier and writes to the stderr that is all platform compatible

func Faillnf

func Faillnf(format string, a ...interface{})

Faillnf writes to stderr a formated fail message with a newline

func Infolnf

func Infolnf(format string, a ...interface{})

Infolnf writes to stdout a formated info message with a newline

func Oklnf

func Oklnf(format string, a ...interface{})

Oklnf writes to stdout a formated ok message with a newline

func Passlnf

func Passlnf(format string, a ...interface{})

Passlnf writes to stdout a formated pass message with a newline

func Printf

func Printf(format string, a ...interface{})

Printf formats according to the format specifier and writes to the stdout that is all platform compatible

func Warnlnf

func Warnlnf(format string, a ...interface{})

Warnlnf writes to stdout a formated warning message with a newline

Types

This section is empty.

Jump to

Keyboard shortcuts

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