output

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Description string
	Value       interface{}
	ValueList   []interface{}
	ValueMap    map[string]interface{}
}

type Output

type Output struct {
	// contains filtered or unexported fields
}

Store OutputType for reference when posting messages

func New

func New(jsonOutput bool) *Output

func (*Output) AddDeferredListMessageRead

func (o *Output) AddDeferredListMessageRead(description string, value []interface{})

Adds a message that will not print until Close() is called, to print and align List of primitive Values (string, int, bool)

func (*Output) AddDeferredMapMessageRead

func (o *Output) AddDeferredMapMessageRead(description string, value map[string]interface{})

Adds a message that will not print until Close() is called, to print and align Map Value, string -> primitive (string, int, bool)

func (*Output) AddDeferredMessageRead

func (o *Output) AddDeferredMessageRead(description string, value interface{})

Adds a message that will not print until Close() is called, to print and align Single primitive Value (string, int, bool)

func (Output) AddFormattedMessageCalculated

func (o Output) AddFormattedMessageCalculated(description string, value interface{})

Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput

func (*Output) AddFormattedMessageUserProvided

func (o *Output) AddFormattedMessageUserProvided(description string, value interface{})

Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput

func (Output) AddMessageCalculated

func (o Output) AddMessageCalculated(description string, value interface{})

Add display information to show progress to terminal users This will be printed immediately for DefaultOutput

func (*Output) AddMessageUserProvided

func (o *Output) AddMessageUserProvided(description string, value interface{})

Add display information to show progress to terminal users This will be printed immediately for DefaultOutput

func (*Output) AddTableHeader

func (o *Output) AddTableHeader(headers ...interface{})

Add headers for table, used for a list of items

func (*Output) AddTableRows

func (o *Output) AddTableRows(rows ...interface{})

Add rows for at table, will be matched to headers set in AddTableHeaders, used for a list of items

func (*Output) Close

func (o *Output) Close()

Jump to

Keyboard shortcuts

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