Ysmrr is a simple multi-line spinner package for your terminal.
go get -u github.com/chelnak/ysmrr
// Create a new spinner manager
sm := ysmrr.NewSpinnerManager()
// Add a spinner
mySpinner := sm.AddSpinner("Spinny things...")
// Start the spinners that have been added to the group
sm.Start()
// Set the spinner to complete
time.Sleep(2 * time.Second)
mySpinner.Complete()
// Stop the spinners in the group
time.Sleep(2 * time.Second)
sm.Stop()
For example usage, check out the examples directory for.
Ysmrr was inspired by the following projects:
It also uses github.com/fatih/color for the underlying color system and github.com/mattn/go-colorable for Windows support.