Created
August 1, 2019 12:35
-
-
Save sahajre/b8cfab258f29e0972d3de5ed27d5d9d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package main | |
| import "fmt" | |
| func main() { | |
| ch := make(chan string) | |
| go func() { | |
| ch <- "Hello, 世界" | |
| }() | |
| fmt.Println(<-ch) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment