由於丟到goroutine 方式來平行處理,所以需要使用WaitGroup 確保全部goroutine 拿到資料後,才結束func。 Share memory by communicating. 上面的例子可以 ...
確定! 回上一頁