Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDParam ¶
IDParam calls chi.URLParam and if the parameter is set, returns the value as int.
func MustIDParam ¶
MustIDParam calls chi.URLParam and if the parameter is set, returns the value as int. If the value is not an int or not positive, it panics.
func StrictIDParam ¶
StrictIDParam calls chi.URLParam and if the parameter is set, returns the value as int. If the value is not an int or not positive, an error with a helpful message is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.