golang为什么chan大部分是发送结构体,而不是其它比如string

type token struct{} type Group struct { cancel func(error) wg sync.WaitGroup sem chan token errOnce sync.Once err error } func (g *Group) done() { if

posted on 2024-05-27 22:56  ercom  阅读(15)  评论(0编辑  收藏  举报