Documentation
¶
Index ¶
- type Message
- type Output
- func (o *Output) AddDeferredListMessageRead(description string, value []interface{})
- func (o *Output) AddDeferredMapMessageRead(description string, value map[string]interface{})
- func (o *Output) AddDeferredMessageRead(description string, value interface{})
- func (o *Output) AddErrorUserProvided(value string)
- func (o *Output) AddErrorUserProvided2(value string, value2 string)
- func (o *Output) AddErrorUserProvided3(value string, value2 string, value3 string)
- func (o Output) AddFormattedMessageCalculated(description string, value interface{})
- func (o Output) AddFormattedMessageCalculated2(description string, value interface{}, value2 interface{})
- func (o Output) AddFormattedMessageCalculated3(description string, value interface{}, value3 interface{})
- func (o Output) AddFormattedMessageCalculatedDanger(description string, value interface{})
- func (o *Output) AddFormattedMessageUserProvided(description string, value interface{})
- func (o *Output) AddFormattedMessageUserProvided2(description string, value interface{}, value2 interface{})
- func (o *Output) AddFormattedMessageUserProvided3(description string, value interface{}, value2 interface{}, value3 interface{})
- func (o Output) AddMessageCalculated(description string, value interface{})
- func (o *Output) AddMessageUserProvided(description string, value interface{})
- func (o *Output) AddMessageUserProvided2(value1 interface{}, description string, value2 interface{})
- func (o *Output) AddMessageUserProvided3(description1 string, value1 interface{}, description2 string, ...)
- func (o *Output) AddPassUserProvided(value string)
- func (o *Output) AddTableHeaders(headers ...interface{})
- func (o *Output) AddTableRows(rows ...interface{})
- func (o *Output) Close()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct { // OutputType OutputType JsonOutput bool Messages []*Message TableHeaders []interface{} TableRows [][]interface{} }
Store OutputType for reference when posting messages
func (*Output) AddDeferredListMessageRead ¶
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 ¶
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 ¶
Adds a message that will not print until Close() is called, to print and align Single primitive Value (string, int, bool)
func (*Output) AddErrorUserProvided ¶
func (*Output) AddErrorUserProvided2 ¶
func (*Output) AddErrorUserProvided3 ¶
func (Output) AddFormattedMessageCalculated ¶
Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput
func (Output) AddFormattedMessageCalculated2 ¶
func (o Output) AddFormattedMessageCalculated2(description string, value interface{}, value2 interface{})
Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput
func (Output) AddFormattedMessageCalculated3 ¶
func (o Output) AddFormattedMessageCalculated3(description string, value interface{}, value3 interface{})
Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput
func (Output) AddFormattedMessageCalculatedDanger ¶
Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput
func (*Output) AddFormattedMessageUserProvided ¶
Add FORMATTED display information to show progress to terminal users This will be printed immediately for DefaultOutput
func (*Output) AddFormattedMessageUserProvided2 ¶
func (*Output) AddFormattedMessageUserProvided3 ¶
func (Output) AddMessageCalculated ¶
Add display information to show progress to terminal users This will be printed immediately for DefaultOutput
func (*Output) AddMessageUserProvided ¶
Add display information to show progress to terminal users This will be printed immediately for DefaultOutput THIS IS CALLED A RECIEVER FUNCTION https://www.youtube.com/watch?v=HE6tbWlymmk Also a method. You can only define methods on a type defined in that same package
func (*Output) AddMessageUserProvided2 ¶
func (*Output) AddMessageUserProvided3 ¶
func (*Output) AddPassUserProvided ¶
func (*Output) AddTableHeaders ¶
func (o *Output) AddTableHeaders(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