output

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PromptStream *os.File
View Source
var SupressOutput = false

Functions

func PrintError

func PrintError(err error)

func PrintFatal

func PrintFatal(err error)

func PrintJson

func PrintJson(contentBytes []byte)

func PrintProperty

func PrintProperty(name, value string)

func PrintResult

func PrintResult(desc string, err error)

func Printf added in v0.3.0

func Printf(str string, args ...interface{})

func Println added in v0.3.0

func Println(str ...interface{})

func Prompt added in v0.3.0

func Prompt(name, defaultValue string) string

Types

type ProgressBar added in v0.2.0

type ProgressBar struct {
	Max     int
	Current int
	// contains filtered or unexported fields
}

ProgressBar - A structure that controls displaying a progress bar in the console.

func NewProgress added in v0.2.0

func NewProgress(max int) *ProgressBar

NewProgress - Creates a new progress bar with a given maximum value.

func (*ProgressBar) Inc added in v0.2.0

func (bar *ProgressBar) Inc()

Inc - Increments the current value by one.

func (*ProgressBar) Stop added in v0.2.0

func (bar *ProgressBar) Stop()

Stop - Stops the progress bar rendering. This is automatically called if the current value reaches the maximum.

Jump to

Keyboard shortcuts

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