go 开启多个goroutine 执行任务, 偶尔会出现 内存地址错误
go 开启多个goroutine 执行任务, 偶尔会出现 runtime error: invalid memory address or nil pointer dereference
跟函数的参数是 *DB有关吗?
是否需要在函数内部去创建连接资源吗?
不能外面统一传到函数内部用吗?
推荐文章: