Skip to content

Instantly share code, notes, and snippets.

@mg
Created January 14, 2014 21:24
Show Gist options
  • Save mg/8426001 to your computer and use it in GitHub Desktop.
Save mg/8426001 to your computer and use it in GitHub Desktop.
items := make(map[string]interface{})
items["Sources"] = ghsources
items["SourcesIndex"] = sourceindex
items["UserName"] = u.String()
items["UserLogoutUrl"], _ = user.LogoutURL(c, "/")
if err = t.ExecuteTemplate(w, "admin.thtml", items); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment