Skip to content

Instantly share code, notes, and snippets.

@rabellamy
Created February 22, 2019 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rabellamy/827548023cbc26c5fb9260801cc662f9 to your computer and use it in GitHub Desktop.
Save rabellamy/827548023cbc26c5fb9260801cc662f9 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"sync"
)
func main() {
var wg sync.WaitGroup
sayHello := func() {
wg.Done()
fmt.Println("Hello MLS!!!!")
}
wg.Add(1)
go sayHello()
wg.Wait()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment