Skip to content

Instantly share code, notes, and snippets.

@cdemers
Last active March 15, 2017 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdemers/2b49226f5aee5f3d393c7c7f5fff93f7 to your computer and use it in GitHub Desktop.
Save cdemers/2b49226f5aee5f3d393c7c7f5fff93f7 to your computer and use it in GitHub Desktop.
Quicky spinner Go (golang) code using the nice briandowns' spinner library
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