This repository has been archived on 2022-08-26. You can view files and clone it, but cannot push or open issues/pull-requests.
|
package templates
|
|
|
|
import "net/http"
|
|
|
|
// Redirect sends an HTTP header to the browser.
|
|
func Redirect(w http.ResponseWriter, url string) {
|
|
w.Header().Set("Location", url)
|
|
w.WriteHeader(http.StatusFound)
|
|
}
|