Created
March 2, 2015 14:36
-
-
Save iporsut/eb2262ac63080df98b05 to your computer and use it in GitHub Desktop.
SecondCounter
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
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