validators

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 4 Imported by: 0

README

Validators

Contains default validators. You can add your own validators here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidDate

func ValidDate(date string) bool

ValidDate checks if the string is a valid date in the format YYYY-MM-DD

func ValidDateTime

func ValidDateTime(date string) bool

ValidDateTime checks if the string is a valid date time in RFC3339 format

func ValidInt

func ValidInt(val string) bool

ValidInt checks if the string can be parsed as an integer

func ValidURL

func ValidURL(uri string) bool

ValidURL checks if the string is a valid URL that can be parsed

func ValidUUID

func ValidUUID(val string) bool

ValidUUID checks if the string is a valid UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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