validate

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ISO8601Date

func ISO8601Date(v string) bool

ISO8601Date validates ISO 8601 date format `yyyy-mm-dd`.

func RequestQueryStringLimitParam added in v0.0.22

func RequestQueryStringLimitParam(limit string) bool

RequestQueryStringPageParam validates incoming `limit` parameter.

func RequestQueryStringOrderParam added in v0.0.22

func RequestQueryStringOrderParam(order string) bool

RequestQueryStringPageParam validates incoming `order` parameter. It allows letters, numbers, - and _ characters for order fields.

func RequestQueryStringPageParam added in v0.0.22

func RequestQueryStringPageParam(page string) bool

RequestQueryStringPageParam validates incoming `page` parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL