validation

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int32InSlice

func Int32InSlice(valid []int32) schema.SchemaValidateFunc

Int32InSlice returns a SchemaValidateFunc that tests if the provided value is of type int32 and matches the value of an element in the valid slice.

func IsEmailAddress

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

IsEmailAddress is a SchemaValidateFunc that tests if the provided value is of type string and matches the format of a valid email address.

func StringIsNumerical

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

StringIsNumerical is a SchemaValidateFunc that tests if the provided value is of type string and represents a numerical value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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