README: chan
This commit is contained in:
@@ -170,7 +170,6 @@ Here are some examples related to them:
|
|||||||
Most of the Go syntax is already supported. Except for the following, which needs to be improved:
|
Most of the Go syntax is already supported. Except for the following, which needs to be improved:
|
||||||
|
|
||||||
* map (Very limited support)
|
* map (Very limited support)
|
||||||
* chan (Not supported yet)
|
|
||||||
|
|
||||||
Here are some examples related to Go syntax:
|
Here are some examples related to Go syntax:
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package main
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
ch := make(chan int, 10)
|
ch := make(chan int, 10)
|
||||||
println(ch, len(ch), cap(ch))
|
println(len(ch), cap(ch))
|
||||||
go func() {
|
go func() {
|
||||||
ch <- 100
|
ch <- 100
|
||||||
}()
|
}()
|
||||||
Reference in New Issue
Block a user