diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-09-17 01:19:25 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-09-17 01:19:25 +0300 |
commit | a054f480adf26e90ddcb66408688486704ab7094 (patch) | |
tree | 4600b6e7633979e1a4b94cfcaeb7ddf156733575 /redirect.go | |
parent | 5094ebf213243023c6325310b3f710a0974025dd (diff) |
simple handlerv0.0.2
Diffstat (limited to 'redirect.go')
-rw-r--r-- | redirect.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/redirect.go b/redirect.go deleted file mode 100644 index a392234..0000000 --- a/redirect.go +++ /dev/null @@ -1,8 +0,0 @@ -package mux - -import "net/http" - -func Redirect(w http.ResponseWriter, code int, location string) { - w.Header().Add("Location", location) - w.WriteHeader(code) -} |