package redirect import "net/http" type ( Code int ) var ( MovedPermanently = Code(http.StatusMovedPermanently) Found = Code(http.StatusFound) SeeOther = Code(http.StatusSeeOther) TemporaryRedirect = Code(http.StatusTemporaryRedirect) PermanentRedirect = Code(http.StatusPermanentRedirect) ) func (c Code) Int() int { return int(c) }