output

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 5 Imported by: 1

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 added in v0.1.1

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 added in v0.1.1

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