Skip to content

Instantly share code, notes, and snippets.

@rogerwelin
Created September 3, 2018 19:25
Show Gist options
  • Select an option

  • Save rogerwelin/02f8b5ec0bedb5985fe5bb3586e65d53 to your computer and use it in GitHub Desktop.

Select an option

Save rogerwelin/02f8b5ec0bedb5985fe5bb3586e65d53 to your computer and use it in GitHub Desktop.
super-simple-concurr
package main
import (
"fmt"
"time"
)
func printer(msg string) {
fmt.Println(msg)
}
func main() {
fmt.Println("Init")
go printer("hello concurrency")
fmt.Println("End")
time.Sleep(1 * time.Second)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment