Skip to content

Instantly share code, notes, and snippets.

@hackintoshrao
Last active May 6, 2021 06:51
Show Gist options
  • Save hackintoshrao/0bda2ac60ed37bbae3c7 to your computer and use it in GitHub Desktop.
Save hackintoshrao/0bda2ac60ed37bbae3c7 to your computer and use it in GitHub Desktop.
Pushing 2 elements into channel of size one
func main() {
bridgeForOne := make(chan int, 1)
bridgeForOne <- 1
fmt.Println("Integer sent onto the bridge")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment