Skip to content

Instantly share code, notes, and snippets.

@tenntenn
Created December 26, 2012 10:55
Show Gist options
  • Save tenntenn/4379588 to your computer and use it in GitHub Desktop.
Save tenntenn/4379588 to your computer and use it in GitHub Desktop.
func countdown(n uint) {
for i := 0; i < int(n); i++ {
fmt.Print(int(n)-i)
<-time.After(1 * time.Second)
fmt.Print(" ")
}
fmt.Println()
fmt.Println("Start!!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment