Created
November 21, 2018 09:16
-
-
Save haridutt12/ca59baccb346f7c2f351a7dd1bb8d1f8 to your computer and use it in GitHub Desktop.
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 say(s string) { | |
for i := 0; i < 5; i++ { | |
time.Sleep(100 * time.Microsecond) | |
fmt.Println(s) | |
} | |
} | |
func main() { | |
go say("hello") | |
say("world") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment