output

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

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

Error prints an error aka bold red

func Info

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

Info prints an info string to the terminal

func Set

func Set(out, err io.Writer)

func Success

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

Success prints a string as a success message aka bold green

func Warn

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

Warn prints a string as a warning to the terminal aka bold yellow

func WithConfirmation

func WithConfirmation(format string, args ...interface{}) bool

WithConfirmation prints the supplied message as an info and waits for confirmation of the user. The default choice for the confirmation, and thus for the returned boolean, is false

Types

This section is empty.

Jump to

Keyboard shortcuts

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