有没有办法在 Go 中查看我的异步通道中剩余多少存储空间?
例如
a chan uint=make(chan bool, 5)
a<-true
fmt.Printf(a.capazity())
喵喔喔
相关分类