validator

package
v0.0.0-...-8f950ac Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

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 NewValidator

func NewValidator(field, value string) Validator

func (Validator) CustomMessage

func (v Validator) CustomMessage(message string) Validator

func (Validator) IsEmail

func (v Validator) IsEmail() Validator

func (Validator) MaxBytes

func (v Validator) MaxBytes(max int) Validator

func (Validator) MaxLength

func (v Validator) MaxLength(max int) Validator

func (Validator) Required

func (v Validator) Required() Validator

func (Validator) SameAs

func (v Validator) SameAs(val string) Validator

func (Validator) SetError

func (v Validator) SetError(message string) Validator

func (Validator) Validate

func (v Validator) Validate() string

Jump to

Keyboard shortcuts

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