func GetUserIdFromSession(sess *session.Session) int64 { if id, ok := sess.Get("auth_user_id").(int64); ok { return id } return 0 }