Discover Packages
github.com/cloudwego/hertz
pkg
route
param
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jul 22, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 4
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.