redirects

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PanicOnInitError = true

PanicOnInitError (when true) causes Init() to panic if redirects.csv contains invalid data

Functions

func DynamicRedirectHandler added in v1.33.0

func DynamicRedirectHandler(redirectFrom, redirectTo string) http.Handler

DynamicRedirectHandler redirects requests to the provide 'to' base path whilst keeping all the other information of the request url

func Handler

func Handler(h http.Handler) http.Handler

Handler with temporary redirect

func Init

func Init(asset func(name string) ([]byte, error))

Types

This section is empty.

Jump to

Keyboard shortcuts

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