https://github.com/caarlos0-graveyard/spin
A very simple spinner for cli Go apps
https://github.com/caarlos0-graveyard/spin
cli golang spinner
Last synced: 5 months ago
JSON representation
A very simple spinner for cli Go apps
- Host: GitHub
- URL: https://github.com/caarlos0-graveyard/spin
- Owner: caarlos0-graveyard
- Created: 2016-12-12T12:29:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T19:25:19.000Z (about 6 years ago)
- Last Synced: 2024-06-19T14:23:59.296Z (almost 2 years ago)
- Topics: cli, golang, spinner
- Language: Go
- Size: 20.5 KB
- Stars: 69
- Watchers: 1
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spin
A very simple spinner for cli golang apps.
[](https://github.com/caarlos0/spin/releases/latest)
[](LICENSE.md)
[](https://travis-ci.org/caarlos0/spin)
[](https://codecov.io/gh/caarlos0/spin)
[](http://godoc.org/github.com/caarlos0/spin)
[](https://goreportcard.com/report/github.com/caarlos0/spin)
[](https://saythanks.io/to/caarlos0)
Example usage:
```go
package main
import (
"fmt"
"time"
"github.com/caarlos0/spin"
)
func main() {
s := spin.New("%s Working...")
s.Start()
defer s.Stop()
time.Sleep(100 * 20 * time.Millisecond)
}
```
[](https://asciinema.org/a/as4awxfj3zhlr8be6938pe21l)