constraints

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blank

type Blank struct{}

func (Blank) Validate

func (c Blank) Validate(value any) error

type Currency

type Currency struct{}

func (Currency) Validate

func (c Currency) Validate(value any) error

type Email

type Email struct{}

func (Email) Validate

func (c Email) Validate(value any) error

type IsBool

type IsBool struct{}

func (IsBool) Validate

func (c IsBool) Validate(value any) error

type IsFalse

type IsFalse struct{}

func (IsFalse) Validate

func (c IsFalse) Validate(value any) error

type IsTrue

type IsTrue struct{}

func (IsTrue) Validate

func (c IsTrue) Validate(value any) error

type Language

type Language struct{}

func (Language) Validate

func (c Language) Validate(value any) error

type LanguageWithRegion

type LanguageWithRegion struct{}

func (LanguageWithRegion) Validate

func (c LanguageWithRegion) Validate(value any) error

type NotBlank

type NotBlank struct{}

func (NotBlank) Validate

func (c NotBlank) Validate(value any) error

type RangeConstraint

type RangeConstraint struct {
	Min int
	Max int
}

func (RangeConstraint) Validate

func (r RangeConstraint) Validate(value any) error

type Required

type Required struct{}

func (Required) Validate

func (c Required) Validate(value any) error

Jump to

Keyboard shortcuts

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