panic: interface conversion: interface {} is nil, not int64
有大佬知道怎么解决吗
interface {} is nil, not int64,类型转换错误,一般是实际获取结果为nil,不是预想的Int64类型,go语言就是这样,需要自己做错误、异常判断,一般结果会有个errors的返回,先判断这个是否为空值
应该是有类似
int64(xxx)
之类的操作,其中 xxx 是 nil 导致的,类型转换之前记得判空
2,171
社区成员
912
社区内容
加载中
试试用AI创作助手写篇文章吧