Skip to content

Instantly share code, notes, and snippets.

@iporsut
Created March 2, 2015 14:36
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 iporsut/eb2262ac63080df98b05 to your computer and use it in GitHub Desktop.
Save iporsut/eb2262ac63080df98b05 to your computer and use it in GitHub Desktop.
SecondCounter
package main
import (
"fmt"
"time"
)
func SecondCounter() {
for i := 1; i <= 20; i++ {
time.Sleep(1 * time.Second)
fmt.Println(i)
}
}
func main() {
SecondCounter()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment