https://github.com/codegangsta/martini
https://github.com/codegangsta/martini-contrib
说极好,是你没用过吧??
哥用了,放弃,比如如何让session和form一起工作,没搞定。。。。求帮助。。。
I do not know how to let martini binding and sessions module work together, could you help me?
m.Post("/signin", binding.Bind(UserSignin{}), func(usersingin UserSignin) string {
if userpost, err := QueryUser(usersingin); err != false {
// find user in db, how to bind a cookie/session in sessions module in here?
} else {
return "query DB failed"
}
})
#7
更多评论