console

package
v0.0.0-...-0fadc07 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Exit allows replacing os.Exit in tests.
	Exit = os.Exit
)

Functions

func Command

func Command(cmd string, params ...interface{})

Command prints a command.

func Error

func Error(err error)

Error prints an error.

func JSON

func JSON(v interface{})

JSON formats and prints a value as JSON.

func Recover

func Recover()

Recover calls Error on a recovered panic and exits.

func Section

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

Section prints a section.

func Step

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

Step prints a step.

func Title

func Title(title, tagLine string)

Title prints a title.

func Warning

func Warning(err error)

Warning prints a warning.

Types

This section is empty.

Jump to

Keyboard shortcuts

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