Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tj/go-spin
Terminal spinner package for Golang
https://github.com/tj/go-spin
Last synced: 6 days ago
JSON representation
Terminal spinner package for Golang
- Host: GitHub
- URL: https://github.com/tj/go-spin
- Owner: tj
- License: mit
- Created: 2014-07-01T01:34:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T11:39:37.000Z (over 3 years ago)
- Last Synced: 2024-11-30T08:07:18.172Z (13 days ago)
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 534
- Watchers: 7
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - go-spin
README
# go-spin
Little terminal spinner lib.
View the [docs](http://godoc.org/github.com/tj/go-spin).
## Installation
```
$ go get github.com/tj/go-spin
```## Example
```go
s := spin.New()
for i := 0; i < 30; i++ {
fmt.Printf("\r \033[36mcomputing\033[m %s ", s.Next())
time.Sleep(100 * time.Millisecond)
}
```
## GIF FTW
![](./go-spin.gif)# License
MIT