Documentation ¶
Index ¶
- type Output
- type Report
- type Stdout
- func (s *Stdout) Alert(str string)
- func (s *Stdout) Alertf(format string, a ...interface{})
- func (s *Stdout) Error(err error)
- func (s *Stdout) HideLoader()
- func (s *Stdout) HidePercentage()
- func (s *Stdout) HideXonY()
- func (s *Stdout) Info(str string)
- func (s *Stdout) Infof(format string, a ...interface{})
- func (s *Stdout) InstructionTitle(str string)
- func (s *Stdout) Report()
- func (s *Stdout) ShowLoader()
- func (s *Stdout) ShowPercentage(p int)
- func (s *Stdout) ShowXonY(x, y int)
- func (s *Stdout) StepTitle(str string)
- func (s *Stdout) Success(str string)
- func (s *Stdout) Successf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output interface { StepTitle(string) // StepTitle writes a step title InstructionTitle(string) // InstructionTitle writes an instruction title Info(string) // Info writes an informational message Infof(format string, a ...interface{}) // Infof writes an informational message with formatting Success(string) // Success writes a successful message Successf(format string, a ...interface{}) // Success writes a successful message with formatting Alert(string) // Alert writes an alert message Alertf(format string, a ...interface{}) // Alertf writes an alert message with formatting Error(error) // Error writes an error message ShowLoader() // ShowLoader displays the loader HideLoader() // HideLoader hides the loader ShowPercentage(int) // ShowPercentage displays the loader with percentage HidePercentage() // HidePercentage hides the loader with percentage ShowXonY(int, int) // ShowXonY displays the loader with "X/Y" information HideXonY() // HideXonY hides the loader with "X/Y" information Report() // Report writes the summary }
Output is an output for quickonf
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report gathers data for reporting
type Stdout ¶
type Stdout struct {
// contains filtered or unexported fields
}
Stdout is an output writer which writes on stdout
func (*Stdout) HidePercentage ¶
func (s *Stdout) HidePercentage()
HidePercentage hides the loader with percentage
func (*Stdout) HideXonY ¶
func (s *Stdout) HideXonY()
HideXonY hides the loader with "X/Y" information
func (*Stdout) InstructionTitle ¶
InstructionTitle writes an instruction title
func (*Stdout) ShowPercentage ¶
ShowPercentage displays the loader with percentage
Click to show internal directories.
Click to hide internal directories.