Discover Packages
github.com/caiflower/common-tools
web
router
param
package
Version:
v0.0.0-...-7f880ae
Opens a new window with list of versions in this module.
Published: Aug 25, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Param is a single URL parameter, consisting of a key and a value.
Params is a Param-slice, as returned by the router.
The slice is ordered, the first URL parameter is also the first slice value.
It is therefore safe to read values by the index.
ByName returns the value of the first Param which key matches the given name.
If no matching Param is found, an empty string is returned.
Get returns the value of the first Param which key matches the given name.
If no matching Param is found, an empty string is returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.