Categorygithub.com/jaxleof/uispinner
repositorypackage
1.0.0
Repository: https://github.com/jaxleof/uispinner.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

uispinner

GoDoc Go

A Go library to render multiple spinners in terminal applications, support multi process and tree structure.

feature

  1. support multi process
  2. tree structure supported
  3. chain method revise spinner
  4. update spinner dynamic
  5. every spinner has self interval

install

go get github.com/jaxleof/uispinner
go get github.com/briandowns/spinner #this package supply many spinners

usage

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()

snapshot

snap.png

thanks

  1. uilive. uilive is a go library for updating terminal output in realtime, which support whole uispinner.
  2. spinner, which supply many interesting spinner.