Created
August 7, 2015 20:45
-
-
Save jakoss/0bb7300b529e441ba14e to your computer and use it in GitHub Desktop.
Iterate through the all charsets in briandowns/spinner
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"time" | |
"github.com/briandowns/spinner" | |
) | |
func main() { | |
for i := 0; i < 36; i++ { | |
s := spinner.New(spinner.CharSets[i], 100*time.Millisecond) | |
fmt.Printf("Charset [%d]:\n", i) | |
s.Start() | |
reader := bufio.NewReader(os.Stdin) | |
reader.ReadString('\n') | |
s.Stop() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment