validation

package
v0.0.0-...-296dac9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotBlank

func NotBlank(fl validator.FieldLevel) bool

NotBlank is the validation function for validating if the current field has a value or length greater than zero, or is not a space only string.

Types

type ValidationHandler

type ValidationHandler struct {
	Validate *validator.Validate
}

func (*ValidationHandler) Initialize

func (v *ValidationHandler) Initialize()

Initialize Validator

func (*ValidationHandler) ValidateStruct

func (v *ValidationHandler) ValidateStruct(data interface{}) []string

Validate fields here and generate messages that can be incorporated into output later on

Jump to

Keyboard shortcuts

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