Skip to content

Instantly share code, notes, and snippets.

Created Jul 13, 2019
What would you like to do?
package main
import (
func main() {
fmt.Println("main execution started")
// create goroutine
go func() {
fmt.Println("Hello World!")
// schedule another goroutine
time.Sleep(10 * time.Millisecond)
fmt.Println("main execution stopped")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment