Documentation ¶
Index ¶
- func BoldBlue(msg interface{}) string
- func BoldRed(msg interface{}) string
- type Printer
- func (p *Printer) Print(i ...interface{})
- func (p *Printer) PrintSpinner(message string) error
- func (p *Printer) Printf(format string, i ...interface{})
- func (p *Printer) Println(i ...interface{})
- func (p *Printer) SetOutput(output io.Writer)
- func (p *Printer) StopFailSpinner(message string) error
- func (p *Printer) StopSpinner(message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer is a wrapper around the fmt package to print to a defined output.
func Newprinter ¶
Newprinter returns a new Printer.
func (*Printer) Print ¶
func (p *Printer) Print(i ...interface{})
Print is a convenience method to Print to the defined output.
func (*Printer) PrintSpinner ¶
PrintSpinner starts a spinner and returns a function to stop it.
func (*Printer) Println ¶
func (p *Printer) Println(i ...interface{})
Println is a convenience method to Println to the defined output.
func (*Printer) StopFailSpinner ¶
func (*Printer) StopSpinner ¶
Click to show internal directories.
Click to hide internal directories.