golang 中 cannot use ** (type interface {}) as type **解决方案

在beego中从session中取值的时候,取出来的是intergace{},可是我先返回的值是int型,或者是string,这个时候会出现一个错误: cannot use ** (变量)(type interface {}) as type **(类型)session 错误代码:code func CurrentId(ctx *context.Context) int { userStr
相关文章
相关标签/搜索