Skip to content

mateconpizza/rotato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

49 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rotato Logo

πŸŒ€ Rotato

GitHub go.mod Go version Linux Go Reference

Lightweight and highly customizable spinner library for Go, designed to enhance your command-line applications with visually appealing progress indicators. With 42 spinners to choose from, you can easily integrate dynamic loading animations into your projects.


Demo

🎬 More demos

You can check out the spinners with the following commands:

  • Simple demo.
go run github.com/mateconpizza/rotato/example@latest -demo
  • All registered rotatos.
go run github.com/mateconpizza/rotato/example@latest -all

πŸ“¦ Installation

go get github.com/mateconpizza/rotato@latest

πŸš€ Example

There is a example in the example folder.

r := rotato.New(
    rotato.WithPrefix("Repo"),
    rotato.WithSpinnerColor(rotato.ColorBrightGreen),
    rotato.WithDoneColorMesg(rotato.ColorBrightGreen, rotato.ColorStyleItalic),
    rotato.WithFailColorMesg(rotato.ColorRed, rotato.ColorStyleBlink),
)
r.Start()
// do some stuff
repo := git.New("https://github.com/mateconpizza/rotato")
r.UpdateMesg("Syncing Repo...")
if err := repo.Sync(); err != nil {
    r.Fail("Sync Failed!")
    return err
}
r.Done("Sync Completed!")

πŸ—¨οΈ Credits

This package uses symbols/spinners from this libraries, and of course ideas!

Thanks to:

About

πŸŒ€ simple spinner library for Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors