validators

package
v0.0.0-...-2537317 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InRange

func InRange(allowed interface{}, actual interface{}) error

InRange will return an error if the expected list of values does not contain the actual value provided

func StrIsBool

func StrIsBool(v string) error

func StrIsIP

func StrIsIP(v string) error

func StrIsInt

func StrIsInt(v string) error

StrIsInt will return an error if the input is not parseable as an int

func StrIsIntInSet

func StrIsIntInSet(allowable []int, v string) error

StrIsIntInSet will return an error if the input is not an integer or if it is not in the provided list of expected ints

func StrIsMAC

func StrIsMAC(v string) error

func StrIsPositiveInt

func StrIsPositiveInt(v string) error

StrIsPositiveInt will return an error if the input is not both an integer and greater than or equal to 0

func StrIsUUIDv4

func StrIsUUIDv4(v string) error

func StrNotEmpty

func StrNotEmpty(v string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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