Last active
May 6, 2021 06:51
-
-
Save hackintoshrao/0bda2ac60ed37bbae3c7 to your computer and use it in GitHub Desktop.
Pushing 2 elements into channel of size one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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