Documentation
¶
Index ¶
- func Body(r *http.Request, into any) error
- func Header[T any](r *http.Request, key string, defaultValue T) T
- func HeaderOrQuery[T any](r *http.Request, key string, defaultValue T) T
- func Query[T any](r *http.Request, key string, defaultValue T) T
- func ValueOrDefault[T any](val string, defaultValue T) T
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderOrQuery ¶ added in v1.23.0
func ValueOrDefault ¶ added in v1.23.0
nolint: forcetypeassert,gomnd,ifshort ValueOrDefault return default value if empty string
Types ¶
Click to show internal directories.
Click to hide internal directories.