short.go 187 B

123456789
  1. package ss
  2. // Returns the handler that redirects to the specified URL (u)
  3. func Redirect(u string, status Status) Handler {
  4. return Func(func(c *Context){
  5. c.Redirect(u, status)
  6. })
  7. }