Created
September 3, 2018 19:25
-
-
Save rogerwelin/02f8b5ec0bedb5985fe5bb3586e65d53 to your computer and use it in GitHub Desktop.
super-simple-concurr
This file contains hidden or 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 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