ch := make(chan int, runtime.NumCPU())
for i := 0; i < len(wechatOrderList); i++ {
go modifyWxOrderProfit(&wechatOrderList[i], ch)
ch <- i
}
close(ch)
func modifyWxOrderProfit(wechatOrder *order.WechatOrder, ch chan int){
for v := range ch {
fmt.Println("processing order", v)
}
}