utilsValid

package
v0.0.0-...-7ec6a99 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlphaDash

func IsAlphaDash(str string) bool

func IsAlphaNumeric

func IsAlphaNumeric(str string) bool

func IsCitizenNo

func IsCitizenNo(src string) bool

func IsCronTab

func IsCronTab(src string) bool

func IsEmail

func IsEmail(src string) bool

func IsEmptyString

func IsEmptyString(src string) bool

func IsMobile

func IsMobile(src string) bool

func IsNumeric

func IsNumeric(str string) bool

func IsURL

func IsURL(src string) bool

func StructValid

func StructValid(src interface{}) (bool, error)

Types

type ValidErrorDetail

type ValidErrorDetail struct {
	Namespace  string
	FieldName  string
	FieldTag   string
	FieldType  string
	FieldValue interface{}
}

func TagValid

func TagValid(src interface{}) (bool, []*ValidErrorDetail, error)

Jump to

Keyboard shortcuts

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