Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Printer struct { Color *color Spinner *spinner // contains filtered or unexported fields }
Functions ¶
func Init ¶
func Init(spinner bool)
Init initializes the Printer struct.
It selects whether the printer will be a color or a spinner struct.
func SpinnerAdd ¶
func SpinnerAdd()
SpinnerAdd adds one check to the crafting variable and calls Infof to reflect the remaining checks.
func SpinnerDone ¶
func SpinnerDone()
SpinnerDone subtracts one check to the crafting variable and calls Infof to reflect the remaining checks.
func SpinnerMsg ¶
SpinnerMsg formats according to a format specifier and change the sppiner message.
func SpinnerStopf ¶
SpinnerStopf formats according to a format specifier and change the sppiner suffix.
It also stops the spinner.
func SpinnerSuffixf ¶
SpinnerSuffixf formats according to a format specifier and change the sppiner suffix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.