avalidate

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages = map[string]string{
	"email":    "The %s field must be an valid email%s",
	"eqfield":  "The %s field is not equal to the %s field",
	"required": "The %s field is required%s",
	"url":      "The %s field must be an valid url (e.g. https://www.example.com)%s",
}

Functions

func New

func New()

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}
var Instance *Validator

func (*Validator) Validate

func (v *Validator) Validate(class interface{}) []string

Jump to

Keyboard shortcuts

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