-
-
Save emretanriverdi/f675312755c02ebe3784e2a87b6fb3f4 to your computer and use it in GitHub Desktop.
unbuffered-channel.go
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 channel() { | |
c := make(chan string) | |
c <- "emre" | |
username := <- c | |
fmt.Println(username) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment