Skip to content

Instantly share code, notes, and snippets.

@gufranmirza
Created July 13, 2019 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gufranmirza/f417c5cfb1e3d4644c82e1a31ace09c2 to your computer and use it in GitHub Desktop.
Save gufranmirza/f417c5cfb1e3d4644c82e1a31ace09c2 to your computer and use it in GitHub Desktop.
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