Created
November 22, 2023 12:21
-
-
Save yumed15/2b9be6835531cf50c18d91c1606da56b to your computer and use it in GitHub Desktop.
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
stringStream := make(chan string) | |
go func() { | |
stringStream <- "hello" // pass literal onto channel | |
}() | |
fmt.Println(<-stringStreams) // read the literal from channel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment