func routeHandler(router helpers.RegexpRouter) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { start := time.Now() router.ServeHTTP(w, r) log.Printf("%s %s %s %v", r.RemoteAddr, r.Method, r.URL, time.Since(start)) }) }