diff --git a/README.md b/README.md index dc4c122a..c737ca3a 100644 --- a/README.md +++ b/README.md @@ -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: * map (Very limited support) -* chan (Not supported yet) Here are some examples related to Go syntax: diff --git a/_demo/chan/chan.go b/_cmptest/chan/chan.go similarity index 79% rename from _demo/chan/chan.go rename to _cmptest/chan/chan.go index 46a21d68..754fce6a 100644 --- a/_demo/chan/chan.go +++ b/_cmptest/chan/chan.go @@ -2,7 +2,7 @@ package main func main() { ch := make(chan int, 10) - println(ch, len(ch), cap(ch)) + println(len(ch), cap(ch)) go func() { ch <- 100 }()