validators

package
v0.0.0-...-72def46 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(v *Validator, field, message string)

Types

type Validator

type Validator struct {
	Errors map[string]string
}

func New

func New() *Validator

func (*Validator) Check

func (v *Validator) Check(rule bool, field string, message string)

func (*Validator) IsBlank

func (v *Validator) IsBlank(value string) bool

func (*Validator) IsURL

func (v *Validator) IsURL(rawUrl string) bool

func (*Validator) Valid

func (v *Validator) Valid() bool

Jump to

Keyboard shortcuts

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