golang 循环中协程传递参数

Go 

在 go 循环中,创建协程,协程内需要使用到外部变量,也可以通过 channel 传递参数,对于 channel 传递比较直接,这不做介绍了 本文主要记录,如何直接传递参数给协程,需要注意的问题 普通参数 func TestRoutineParam1(t *testing.T) { for i :

the packet received is not a data packet

Go 

错误 我在项目中使用 gorm-oracle 对 oracle 进行批量读取,遇到了问题 the packet received is not a data packet ,这个问题也不是持续出现,随机出现 解决方法 通过错误信息,看到 error 来自底层库 github.com/sijms/go