Documentation ¶
Index ¶
- func Bold(msg interface{}) string
- func BoldGreen(msg interface{}) string
- func BoldRed(msg interface{}) string
- func BoldWhite(msg interface{}) string
- func BoldYellow(msg interface{}) string
- type Format
- type Printer
- func (p *Printer) Format() Format
- func (p *Printer) Print(i ...interface{})
- func (p *Printer) PrintBold(str string)
- func (p *Printer) PrintJSON(v interface{}) error
- func (p *Printer) PrintResource(v interface{}) error
- func (p *Printer) Printf(format string, i ...interface{})
- func (p *Printer) Println(i ...interface{})
- func (p *Printer) PrintlnError(str string)
- func (p *Printer) PrintlnInfo(str string)
- func (p *Printer) PrintlnSuccess(str string)
- func (p *Printer) PrintlnWarn(str string)
- func (p *Printer) SetHumanOutput(out io.Writer)
- func (p *Printer) SetResourceOutput(out io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoldGreen ¶
func BoldGreen(msg interface{}) string
BoldGreen returns a string formatted with green and bold.
func BoldRed ¶
func BoldRed(msg interface{}) string
BoldRed returns a string formatted with red and bold.
func BoldWhite ¶
func BoldWhite(msg interface{}) string
BoldWhite returns a string formatted with white and bold.
func BoldYellow ¶
func BoldYellow(msg interface{}) string
BoldYellow returns a string formatted with yellow and bold.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func (*Printer) PrintResource ¶
func (*Printer) PrintlnError ¶
func (*Printer) PrintlnInfo ¶
func (*Printer) PrintlnSuccess ¶
func (*Printer) PrintlnWarn ¶
func (*Printer) SetHumanOutput ¶
SetHumanOutput sets the output for human readable messages.
func (*Printer) SetResourceOutput ¶
SetResourceOutput sets the output for pringing resources via PrintResource.
Click to show internal directories.
Click to hide internal directories.