validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateInt

func ValidateInt(optIf interface{}, paramIf interface{}) error

func ValidateIntMax

func ValidateIntMax(optIf interface{}, paramIf interface{}) error

func ValidateIntMin

func ValidateIntMin(optIf interface{}, paramIf interface{}) error

func ValidateString

func ValidateString(optIf interface{}, paramIf interface{}) error

func ValidateStrlenMax

func ValidateStrlenMax(optIf interface{}, paramIf interface{}) error

func ValidateStrlenMin

func ValidateStrlenMin(optIf interface{}, paramIf interface{}) error

Types

type ParamInt

type ParamInt struct {
	Min     int
	Max     int
	Useable []int
}

type ParamString

type ParamString struct {
	Min     int
	Max     int
	Useable []string
}

Jump to

Keyboard shortcuts

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