serverhelper

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRoute

func HandleRoute(mux *http.ServeMux, route string, handler http.Handler)

HandleRoute handles a route and strips off the route path

func StripLeaveSlash

func StripLeaveSlash(prefix string, h http.Handler) http.Handler

like http.StripPrefix, but always leaves an initial slash. (so that our regexps will work.)

Types

This section is empty.

Jump to

Keyboard shortcuts

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