I don't understand this, Martini has an awesome middleware that supports Google, Github, Facebook and LinkedIn out of the box:<p><a href="https://github.com/martini-contrib/oauth2" rel="nofollow">https://github.com/martini-contrib/oauth2</a><p>with easy ways to check to see if a user is authenticated.<p>Gorm is an awesome choice, but this code just looks messy to me