clean

package
v0.0.0-...-edc3dff Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(p string) string

Clean cleans the path p so that the following conditions are met:

- It is always non-empty - It always starts with a '/' - It never contains any '.' or '..' segments - It always ends with a '/'

This means it can be safely used in URL checks. The code was adapted from the 'net/http' package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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