validate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UUIDRegExp = regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$")

uuid regex helper

Functions

func NoEmptyStrings

func NoEmptyStrings(i interface{}, k string) ([]string, []error)

NoEmptyStrings validates that the string is not just whitespace characters (equal to [\r\n\t\f\v ])

func URLIsHTTPOrHTTPS

func URLIsHTTPOrHTTPS(i interface{}, k string) (_ []string, errors []error)

func URLIsHTTPS

func URLIsHTTPS(i interface{}, k string) (_ []string, errors []error)

func URLWithScheme

func URLWithScheme(validSchemes []string) schema.SchemaValidateFunc

func UUID

func UUID(i interface{}, k string) (warnings []string, errors []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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