package redirect
import "golang.org/x/tools/godoc/redirect"
Package redirect provides hooks to register HTTP handlers that redirect old godoc paths to their new equivalents.
Index ¶
- func Handler(target string) http.Handler
- func PrefixHandler(prefix, baseURL string) http.Handler
- func Register(mux *http.ServeMux)
Functions ¶
func Handler ¶
func PrefixHandler ¶
func Register ¶
Register registers HTTP handlers that redirect old godoc paths to their new equivalents. If mux is nil it uses http.DefaultServeMux.
Source Files ¶
redirect.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 5 hours ago –
Tools for package owners.