go并发的问题

netaxcess · · 2692 次点击
感觉有点乱啊,循环的次数20000是怎么出来的,如果并发碰到问题的话,最简单的办法就是改成不并发的。
#8
更多评论
polaris
社区,需要你我一同完善!
错误信息呢?
#1
created by main.main E:/golang/src/yangsheng/info.go:48 +0x2b7 goroutine 3032 [chan send, 5 minutes]: main.getinfo(0x1d198, 0x1151e1c0, 0x35, 0x11030140, 0x11038000) E:/golang/src/yangsheng/info.go:11 +0x3d created by main.main E:/golang/src/yangsheng/info.go:48 +0x2b7 goroutine 3033 [chan send, 5 minutes]: main.getinfo(0x1d197, 0x1151e2c0, 0x37, 0x11030140, 0x11038000) E:/golang/src/yangsheng/info.go:11 +0x3d created by main.main E:/golang/src/yangsheng/info.go:48 +0x2b7 goroutine 3034 [chan send, 5 minutes]: main.getinfo(0x1d196, 0x1151e3c0, 0x36, 0x11030140, 0x11038000) E:/golang/src/yangsheng/info.go:11 +0x3d created by main.main E:/golang/src/yangsheng/info.go:48 +0x2b7 goroutine 3035 [chan send, 5 minutes]: main.getinfo(0x1d195, 0x1151e4c0, 0x34, 0x11030140, 0x11038000) E:/golang/src/yangsheng/info.go:11 +0x3d created by main.main 以下是错误信息
#2