I know that reason I can't figure this out is because I got frustrated and I'm probably overlooking something incredibly simple somewhere. But, I need help.
Suppose I have the following init function.
func init() {
http.HandleFunc("/user", handler1)
http.HandleFunc("/user/profile", handler2)
http.HandleFunc("/user/post", handler3)
...
...
...
}
Every one of these deals with the currently logged in user's profile, so that data needs to be gathered for every one of them.
Is there any way to fill in a structure for every request without calling a construct method to every single handler?
Any help is greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.