Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ISO8601Date ¶
ISO8601Date validates ISO 8601 date format `yyyy-mm-dd`.
func RequestQueryStringLimitParam ¶ added in v0.0.22
RequestQueryStringLimitParam converts incoming `limit` parameter (v) to a valid `int` type. If the value is empty, `10` is returned as default.
func RequestQueryStringOrderParam ¶ added in v0.0.22
RequestQueryStringOrderParam extracts comma separated fields from the `order` parameter (v), iterates and compares them against the allowed set of fields (allowed). Empty `order` parameter is considered as a valid input. Any empty field, duplicated field and non-matching field are all considered as an invalid input.
func RequestQueryStringPageParam ¶ added in v0.0.22
RequestQueryStringPageParam converts incoming `page` parameter (v) to a valid `int` type. If the value is empty, `1` is returned as default.
Types ¶
This section is empty.