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 Path[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 ValueOrDefault ¶
nolint: forcetypeassert,gomnd,ifshort ValueOrDefault return default value if empty string
Types ¶
Click to show internal directories.
Click to hide internal directories.