Created
May 10, 2014 11:29
-
-
Save hami9x/e78c160d73bea2a3f00c to your computer and use it in GitHub Desktop.
example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if user := gSiteData.User(); user == nil { | |
http.Get(serverUrl("/auth")).Success(func(user model.User, status int) { | |
gSiteData.SetUser(user) | |
}) | |
} else { | |
return user | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment