Golang HTTP Writer Redirect

func redirect(w http.ResponseWriter, r *http.Request) {
    http.Redirect(w, r, "http://www.google.com", 301)
}
Splendid-est Swan