ss/short.go

10 lines
188 B
Go
Raw Permalink Normal View History

package bond
// Returns the handler that redirects to the specified URL (u)
func Redirect(u string, status Status) Handler {
return Func(func(c *Context){
c.Redirect(u, status)
})
}