print

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MPL-2.0 Imports: 7 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Color

func Color(msg string, v ...interface{})

Color wraps a print message in 'colorstring' and passes it to fmt.Println

func Password

func Password(p string) string

Password prompts for a password but keeps the typed response hidden

func Prompt

func Prompt(p string, v ...interface{}) string

Prompt will prompt for input from the shell and return a trimmed response

func Silence

func Silence(msg string)

Silence prints output unless in silent mode

func Verbose

func Verbose(msg string)

Verbose only prints a message if the 'verbose' flag is passed

Types

type Print

type Print interface {
	Verbose(msg string)
	Silence(msg string)
	Color(msg string, v ...interface{})
	Prompt(p string, v ...interface{}) string
	Password(p string) string
}
var (
	Default Print = print{}
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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