slashnormalizer

package
v0.0.0-...-1535236 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package slashnormalizer provides a middleware that normalizes the URL path by removing duplicate slashes and redirects that normalized URL path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Middleware normalizes the URL path by removing duplicate slashes and redirected to the normalized URL path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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