Created
April 7, 2020 07:51
Revisions
-
doron2402 created this gist
Apr 7, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ package main import ( "fmt" "time" ) func say(str string) { time.Sleep(1 * time.Millisecond) for i := 0; i < 10; i++ { fmt.Printf("%d) %v\n", i, str) } } func main() { go say("Hello") go say("World") go say("Bye") time.Sleep(100 * time.Millisecond) }