https://github.com/gernest/wow
:open_mouth::exclamation::exclamation: Wow:exclamation: now my Go commandline app is spinning with :rainbow: and :horse:
https://github.com/gernest/wow
command-line golang spinners
Last synced: 17 days ago
JSON representation
:open_mouth::exclamation::exclamation: Wow:exclamation: now my Go commandline app is spinning with :rainbow: and :horse:
- Host: GitHub
- URL: https://github.com/gernest/wow
- Owner: gernest
- License: mit
- Archived: true
- Created: 2017-10-06T19:42:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T10:48:28.000Z (almost 5 years ago)
- Last Synced: 2024-08-02T18:41:11.324Z (9 months ago)
- Topics: command-line, golang, spinners
- Language: Go
- Homepage:
- Size: 233 KB
- Stars: 507
- Watchers: 5
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## wow
[](https://godoc.org/github.com/gernest/wow)Beautiful spinners for Go commandline apps

## Install
go get -u github.com/gernest/wow## Usage
```go
package mainimport (
"os"
"time""github.com/gernest/wow"
"github.com/gernest/wow/spin"
)func main() {
w := wow.New(os.Stdout, spin.Get(spin.Dots), "Such Spins")
w.Start()
time.Sleep(2 * time.Second)
w.Text("Very emojis").Spinner(spin.Get(spin.Hearts))
time.Sleep(2 * time.Second)
w.PersistWith(spin.Spinner{Frames: []string{"👍"}}, " Wow!")
}
```## Available spinners
Name | What it looks like
--------|---------------------
`Star2` | 
`GrowHorizontal` | 
`Squish` | 
`Toggle12` | 
`Smiley` | 
`Hearts` | 
`Dots3` | 
`Dots11` | 
`Balloon` | 
`Clock` | 
`Dots4` | 
`SquareCorners` | 
`CircleHalves` | 
`Star` | 
`Arc` | 
`Toggle13` | 
`BoxBounce` | 
`Line2` | 
`Pipe` | 
`Triangle` | 
`Shark` | 
`Line` | 
`Arrow` | 
`Earth` | 
`Dots5` | 
`Toggle11` | 
`CircleQuarters` | 
`Toggle9` | 
`Dots9` | 
`Bounce` | 
`Toggle2` | 
`Toggle7` | 
`Arrow3` | 
`Moon` | 
`Dots6` | 
`Christmas` | 
`Dots10` | 
`Hamburger` | 
`BoxBounce2` | 
`BouncingBar` | 
`Flip` | 
`Dots8` | 
`Dots12` | 
`Noise` | 
`Toggle3` | 
`Toggle6` | 
`Runner` | 
`Dqpb` | 
`Dots` | 
`Toggle4` | 
`Monkey` | 
`Dots7` | 
`SimpleDots` | 
`GrowVertical` | 
`Circle` | 
`Toggle` | 
`Toggle5` | 
`Arrow2` | 
`Dots2` | 
`Toggle8` | 
`Toggle10` | 
`BouncingBall` | 
`SimpleDotsScrolling` | 
`Pong` | 
`Weather` | 
`Balloon2` | 