Created
May 25, 2015 10:18
-
-
Save pm-kartik-sura/665384ca854644509b21 to your computer and use it in GitHub Desktop.
adding pause in go
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 ( "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| fmt.Println("Hello world!") | |
| duration := time.Second | |
| time.Sleep(duration) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment