Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created March 9, 2021 07:05
Show Gist options
  • Save velotiotech/36181b9da8d698ae5b28f030cd98eee2 to your computer and use it in GitHub Desktop.
Save velotiotech/36181b9da8d698ae5b28f030cd98eee2 to your computer and use it in GitHub Desktop.
func printChannelData(c chan int) {
fmt.Println("Data in channel is: ", <-c)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment