spinner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachSpinnerTo

func AttachSpinnerTo(spinner *wow.Wow, startTime time.Time, msg string, f func() error) error

AttachSpinnerTo attaches a spinner to a function with the message given. For example if you attach a spinner with message "This is a spinner", then, during the execution time of the function, the output will be: spinner This is a spinner... And if there is no error returned by the function, the output after the function executed will be: ✔ This is a spinner If function returns an error, then the output will be: ✖ This is a spinner

Types

This section is empty.

Jump to

Keyboard shortcuts

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