Skip to content

Instantly share code, notes, and snippets.

@alextanhongpin
Created April 4, 2017 06:40
Show Gist options
  • Save alextanhongpin/388040a2fb2162980b1ec835a39aa368 to your computer and use it in GitHub Desktop.
Save alextanhongpin/388040a2fb2162980b1ec835a39aa368 to your computer and use it in GitHub Desktop.
Running multiple processes with golang routines
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