```G
ch := make(chan string)
fmt.Println(ch <- "msg")
```
这样写报错
syntax error: unexpected =, expecting comma or )
更多评论
ch := make(chan string)
go func() {
ch <- "msg"
}()
fmt.Println(<-ch)
#1