Last active
March 15, 2017 14:26
-
-
Save cdemers/2b49226f5aee5f3d393c7c7f5fff93f7 to your computer and use it in GitHub Desktop.
Quicky spinner Go (golang) code using the nice briandowns' spinner library
This file contains 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
import "github.com/briandowns/spinner" | |
someSillySet := []string{"🐶", "🐱", "🐭", "🐹", "🐰", "🐻", "🐼", "🐨", "🐯", "🦁"} | |
s := spinner.New(someSillySet, 100*time.Millisecond) | |
// or | |
s := spinner.New(spinner.CharSets[9], 75*time.Millisecond) | |
s.Start() | |
defer s.Stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment