printer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorColor   = color.New(color.FgRed, color.Bold)
	WarningColor = color.New(color.FgYellow, color.Bold)

	SuccessColor = color.New(color.FgGreen)
)
View Source
var (
	ActiveItemColor = color.New(color.FgGreen, color.Bold)
)

Functions

func EnableOrDisableColor

func EnableOrDisableColor(c *color.Color)

EnableOrDisableColor determines if color should be force-enabled or force-disabled or left untouched based on environment configuration.

func Error

func Error(w io.Writer, format string, args ...interface{}) error

func Success

func Success(w io.Writer, format string, args ...interface{}) error

func Warning

func Warning(w io.Writer, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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