diff --git a/README.md b/README.md index f7c9afc..92b5153 100644 --- a/README.md +++ b/README.md @@ -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.