Documentation ¶ Index ¶ func NewRedirectWithConfig(conf *Config) (http.Handler, error) type Config type Redirect func NewRedirect(code int, location template.Format) *Redirect func (h *Redirect) ServeHTTP(rw http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewRedirectWithConfig ¶ func NewRedirectWithConfig(conf *Config) (http.Handler, error) Types ¶ type Config ¶ type Config struct { Code int Location string } type Redirect ¶ type Redirect struct { // contains filtered or unexported fields } func NewRedirect ¶ func NewRedirect(code int, location template.Format) *Redirect func (*Redirect) ServeHTTP ¶ func (h *Redirect) ServeHTTP(rw http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files init.go redirect.go Click to show internal directories. Click to hide internal directories.