2018年2月2日

摘要: channel在已关闭的情况下 向channel中发送数据会引发:"panic: send on closed channel" 如果channel通道中还有数据、则可以读取其中的数据 如果channel通道中没有数据、则根据channel定义的数据类型不同、返回值不同、int返回0、string返 阅读全文
posted @ 2018-02-02 11:04 残天 阅读(1106) 评论(0) 推荐(0)

导航