validate

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DateFormat is the format used for short dates that don't include the time.
	DateFormat = "2006-01-02"

	// DateTimeFormat is the format used for long dates that include the time.
	DateTimeFormat = time.RFC3339
)

Variables

This section is empty.

Functions

func Date

func Date(date string) bool

Date tells you whether the datetime is valid.

func DateTime

func DateTime(date string) bool

DateTime tells you whether the datetime is valid.

func DiscordNick

func DiscordNick(nick string) bool

DiscordNick tests if the given Discord nickname is valid.

func Email

func Email(email string) bool

Email tests if the given email address is valid.

func Nick

func Nick(nick string) bool

Nick tests if the given nickname is valid.

func URI

func URI(uri string) bool

URI validates a URI.

Types

This section is empty.

Jump to

Keyboard shortcuts

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