A Go library to render multiple spinners in terminal applications, support multi process and tree structure.
- support multi process
- tree structure supported
- chain method revise spinner
- update spinner dynamic
- every spinner has self interval
go get github.com/jaxleof/uispinner
go get github.com/briandowns/spinner #this package supply many spinners
cj := uispinner.New()
// Only multiples of 50*time.Millisecond are supported because io fresh is slow
spinner1 := cj.AddSpinner(spinner.CharSets[34], 50*time.Millisecond).SetComplete("helloWorld").SetPrefix("abc").SetSuffix("ab")
spinner2 := cj.AddSpinner(spinner.CharSets[0], 100*time.Millisecond).SetComplete("good")
cj.Start()
time.Sleep(time.Second * 5)
spinner1.Done()
spinner2.Done()
cj.Stop()