validation

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Numeric

func Numeric(v interface{}) error

Numeric returns nil if v is of a numeric type or a string that can be parsed as a number.

func UUID4

func UUID4(val string) error

UUID4 return nil if val is a valid uuid

func Value

func Value(val interface{}, validVals ...interface{}) error

Value return nil if val is equal (reflect.DeepEqual) to any of the values in validVals

Types

This section is empty.

Jump to

Keyboard shortcuts

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