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
相關文章
相關標籤/搜索