Created
April 4, 2017 06:40
-
-
Save alextanhongpin/388040a2fb2162980b1ec835a39aa368 to your computer and use it in GitHub Desktop.
Running multiple processes with golang routines
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 email() { | |
} | |
func slack() { | |
} | |
func other() { | |
} | |
func newuser() { | |
go email() | |
go slack() | |
go other() | |
} | |
func main() { | |
go newuser() | |
fmt.Println("Hello, playground") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment