print

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Stdout is new instance of Writer which handles escape sequence for stdout.
	Stdout = colorable.NewColorableStdout()
	// Stderr is new instance of Writer which handles escape sequence for stderr.
	Stderr = colorable.NewColorableStderr()
)

Functions

func Err

func Err(err interface{})

Err print error message at STDERR.

func Fatal

func Fatal(err interface{})

Fatal print dying message at STDERR.

func Info

func Info(msg string)

Info print information message at STDOUT.

func Question

func Question(ask string) bool

Question displays the question in the terminal and receives an answer from the user.

func Warn

func Warn(err interface{})

Warn print warning message at STDERR.

Types

This section is empty.

Jump to

Keyboard shortcuts

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