util

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFoundConfig = errors.New("both not_found redirect and render cannot be set at the same time")

Functions

func GetHost

func GetHost(req *http.Request) net.IP

Types

type NotFound

type NotFound struct {
	Redirect string
	Render   string
}

func NewNotFound

func NewNotFound(redirect, render string) (NotFound, error)

func (NotFound) ShouldWarn

func (nf NotFound) ShouldWarn() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL