func handler(c *gin.Context) { c.Redirect(http.StatusMovedPermanently, "/new-url") }
func handler(c *gin.Context) { c.Redirect(http.StatusTemporaryRedirect, "http://google.com") }
func handler(c *gin.Context) { c.Redirect(http.StatusSeeOther, "/new-page") }This will redirect the user to `/new-page` with a 303 status code. Overall, the `Context.Redirect` method in `github.com/gin-gonic/gin` package is a great way to handle HTTP redirects in Go web applications.