renamed site directory to server
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user