Documentation
¶
Index ¶
- func Bool(params map[string]string, name string) (bool, bool, error)
- func Float64(params map[string]string, name string) (float64, bool, error)
- func Int(params map[string]string, name string) (int, bool, error)
- func Int64(params map[string]string, name string) (int64, bool, error)
- func Match(pattern, requestPath string) (map[string]string, bool)
- func Required(params map[string]string, name string) (string, error)
- func String(params map[string]string, name string) (string, bool, error)
- func Uint(params map[string]string, name string) (uint, bool, error)
- func Uint64(params map[string]string, name string) (uint64, bool, error)
- type ParamError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match compares a concrete request path to a simple generated route pattern. Parameter segments use "{name}" and reject empty, ".", and ".." values. A final "{name...}" rest segment matches one or more remaining request segments; the captured value is those segments joined with "/".
Types ¶
type ParamError ¶ added in v0.1.5
ParamError describes a failed route-param decode without exposing the raw request value.
func (ParamError) Error ¶ added in v0.1.5
func (err ParamError) Error() string
func (ParamError) Unwrap ¶ added in v0.1.5
func (err ParamError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.