validator

package
v0.0.0-...-38ac173 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStruct

func ValidateStruct(v Validator) (map[string][]string, bool)

Types

type BaseValidator

type BaseValidator struct{}

func (*BaseValidator) Options

func (v *BaseValidator) Options() Options

type MapData

type MapData = govalidator.MapData

type Options

type Options struct {
	TagIdentifier string
	Rules         MapData
	Messages      MapData
}

type Validator

type Validator interface {
	Options() Options
}

Jump to

Keyboard shortcuts

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