Skip to content

Instantly share code, notes, and snippets.

@shazadbrohi
Created February 13, 2021 02:27
Show Gist options
  • Save shazadbrohi/b2d832183d6ef04954352d5ec354f708 to your computer and use it in GitHub Desktop.
Save shazadbrohi/b2d832183d6ef04954352d5ec354f708 to your computer and use it in GitHub Desktop.
for _, url := range urls {
go fetchUrl(url, send_channel)
}
for _, url := range urls {
fmt.Println("Fetching channel content for URL: ", url)
receive_channel = <-send_channel
fmt.Println(receive_channel)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment