Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created August 2, 2020 07:19
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 luandevpro/088f16d9eb34631a010c593e8c9f4b12 to your computer and use it in GitHub Desktop.
Save luandevpro/088f16d9eb34631a010c593e8c9f4b12 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func main() {
ch := make(chan int)
ch <- 10
fmt.Println("hello main ")
}
fatal error: all goroutines are asleep - deadlock!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment