cloudaice / learnGo

there are something about Go Useage
MIT License
0 stars 0 forks source link

查看channel内元素个数 #5

Open cloudaice opened 11 years ago

cloudaice commented 11 years ago

查看一个channel里面存的元素个数使用len(channel)来求得 查看一个channel本身的长度可以使用cap(channel)来求得