validator

package
v0.0.0-...-8835833 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func CreateValidator

func CreateValidator() *Validator

CreateValidator : Returns a new validator that can extract json tag values from struct

func (*Validator) ValidateRequired

func (val *Validator) ValidateRequired(s interface{}) []string

ValidateRequired : Returns a list of empty struct fields that have the required tag The returned list is a list a strings of the struct fields json tags

Jump to

Keyboard shortcuts

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