文章目录channelsHow to use ChannelsChannel源码解析代码入口channel的结构体新建channelchannel发送元素channel读取元素关闭channelselect channelchannel reveive valuechannel send value用于判断channel是否关闭的场景 channels channel存在以下四个特性 goroutine-safe store and pass values between goroutines provide FIFO semantics can cause goroutines to blo