Discover Packages
github.com/dimfeld/httppath
package
module
Version:
v0.0.0-...-ee938bf
Opens a new window with list of versions in this module.
Published: Jul 20, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 137 modules, 137 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
HttpPath
Utilities for HTTP Path manipulation.
Currently, this just contains the CleanPath function, renamed to Clean, from Julien Schmidt's httprouter .
Expand ▾
Collapse ▴
Documentation
¶
Clean is the URL version of path.Clean, it returns a canonical URL path
for p, eliminating . and .. elements.
The following rules are applied iteratively until no further processing can
be done:
Replace multiple slashes with a single slash.
Eliminate each . path name element (the current directory).
Eliminate each inner .. path name element (the parent directory)
along with the non-.. element that precedes it.
Eliminate .. elements that begin a rooted path:
that is, replace "/.." by "/" at the beginning of a path.
If the result of this process is an empty string, "/" is returned
Source Files
¶
Click to show internal directories.
Click to hide internal directories.