These are chat archives for gin-gonic/gin

27th
Dec 2017
Joey Chen
@leobuzhi
Dec 27 2017 06:29

Hey guys, I get a problem here
I want to use the "github.com/gin-contrib/sessions"

session := sessions.Default(c)

        session.Set("user", queryUser)
        ok:=session.Save()
        log.Debug("save ok :%v",ok)
        c.JSON(http.StatusOK, gin.H{
            "retCode": model.SUCCESS,
            "retContent": gin.H{
                "data": queryUser,
            },
        })

log print:
save ok :gob : type not registered for interface :model.User