Created
October 4, 2017 15:42
-
-
Save Olefine/9e85b9f237ca1c343c4ed52b7262f6e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func spinner(delay time.Duration) { | |
for { | |
for _, r := range `-\|/` { | |
fmt.Printf("\r%c", r) | |
time.Sleep(delay) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment