live

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

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 SpinnerChao

func SpinnerChao()

SpinnerChao stops the spinner with a "Chao!" message.

func SpinnerDone

func SpinnerDone()

SpinnerDone subtracts one check to the crafting variable and calls Infof to reflect the remaining checks.

func SpinnerMsg

func SpinnerMsg(format string, a ...any)

SpinnerMsg formats according to a format specifier and change the sppiner message.

func SpinnerStopf

func SpinnerStopf(format string, a ...any)

SpinnerStopf formats according to a format specifier and change the sppiner suffix.

It also stops the spinner.

func SpinnerSuffixf

func SpinnerSuffixf(format string, a ...any)

SpinnerSuffixf formats according to a format specifier and change the sppiner suffix.

func SppinerStart

func SppinerStart()

SpinnerStart starts the spinner.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL