Skip to content

Commit

Permalink
Fix indentation in example
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed Jul 17, 2022
1 parent 23882fc commit b9a110a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ go get -u github.com/chelnak/ysmrr


```bash
// Create a new spinner manager
sm := ysmrr.NewSpinnerManager()
// Create a new spinner manager
sm := ysmrr.NewSpinnerManager()

// Add a spinner
mySpinner := sm.AddSpinner("Spinny things...")
// Add a spinner
mySpinner := sm.AddSpinner("Spinny things...")

// Start the spinners that have been added to the group
sm.Start()
// Start the spinners that have been added to the group
sm.Start()

// Set the spinner to complete
time.Sleep(2 * time.Second)
mySpinner.Complete()
// Set the spinner to complete
time.Sleep(2 * time.Second)
mySpinner.Complete()

// Stop the spinners in the group
time.Sleep(2 * time.Second)
sm.Stop()
// Stop the spinners in the group
time.Sleep(2 * time.Second)
sm.Stop()
```

See [examples/main.go](examples/main.go) for a more in-depth example.

0 comments on commit b9a110a

Please sign in to comment.