type Profiling … // Install adds the Profiling webservice to the given mux. func (d Profiling) Install(c *mux.PathRecorderMux) { … } // redirectTo redirects request to a certain destination. func redirectTo(to string) func(http.ResponseWriter, *http.Request) { … }