Go 只读/只写channel Go中channel可以是只读、只写、同时可读写的。//定义只读的channelread_only := make (<-chan int)//定义只写的channelwrite_only := make (chan<- int)//可同时读写read_write := make (chan int)定义只读和只写的channel... Other 2023-12-22 124 点赞 1 评论 187 浏览