redirect

package
v0.0.0-...-7e6a7d3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package redirect provides hooks to register HTTP handlers that redirect old godoc paths to their new equivalents and assist in accessing the issue tracker, wiki, code review system, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(target string) http.Handler

func PrefixHandler

func PrefixHandler(prefix, baseURL string) http.Handler

func Register

func Register(mux *http.ServeMux)

Register registers HTTP handlers that redirect old godoc paths to their new equivalents and assist in accessing the issue tracker, wiki, code review system, etc. If mux is nil it uses http.DefaultServeMux.

Types

This section is empty.

Jump to

Keyboard shortcuts

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