package hello
import (
"io"
"net/http"
"google.golang.org/appengine"
"google.golang.org/appengine/log"
"github.com/gorilla/mux"
)
func init() {
mx := mux.NewRouter()
mx.HandleFunc("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx := appengine.NewContext(r)
log.Debugf(ctx, "time to say hello!")
io.WriteString(w, "howdy!")
}))
http.Handle("/", mx)
}
r = r.WithContext(appengine.NewContext(r))
mux.ServeHTTP(w, r)
--
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-appengine-go+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.