Created
August 9, 2022 10:33
-
-
Save Reine0017/12c79177d341adb2f6310034fc06ea27 to your computer and use it in GitHub Desktop.
Working Go Routine
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 myFunc() { | |
fmt.Println("Reine") | |
} | |
func main() { | |
fmt.Println("Hello") | |
go myFunc() | |
fmt.Println("World") | |
time.Sleep(2 * time.Second) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment