How to Redirect to a URL in Go
Redirecting to a URL in Go is done through the http.Redirect()
method. It
accepts an http.ResponseWriter
, *http.Request
, endpoint, and
HTTP status code as arguments in that order.
Redirecting to a URL in Go is done through the http.Redirect()
method. It
accepts an http.ResponseWriter
, *http.Request
, endpoint, and
HTTP status code as arguments in that order.