Created
July 13, 2019 07:38
-
-
Save gufranmirza/f417c5cfb1e3d4644c82e1a31ace09c2 to your computer and use it in GitHub Desktop.
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" | |
func printHello() { | |
fmt.Println("Hello World!") | |
} | |
func main() { | |
fmt.Println("main execution started") | |
// create goroutine | |
go printHello() | |
fmt.Println("main execution stopped") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment