output

package
v0.0.0-...-030b663 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Stdout is a color friendly pipe.
	Stdout = colorable.NewColorableStdout()

	// Stderr is a color friendly pipe.
	Stderr = colorable.NewColorableStderr()
)

Functions

func Error

func Error(format string, args ...interface{})

Error prints an error and exits the program.

func Info

func Info(format string, args ...interface{})

Info prints information.

func OnError

func OnError(err error, text string)

OnError prints an error if err is not nil and exits the program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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