_validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	// contains filtered or unexported fields
}

func NewBool

func NewBool(name string, value interface{}) *Bool

func (*Bool) CodeMessage

func (this *Bool) CodeMessage(codeMessage *_codeMessage.CodeMessage) *Bool

func (*Bool) Default

func (this *Bool) Default(value bool) *Bool

func (*Bool) EnsureFalse

func (this *Bool) EnsureFalse() *Bool

func (*Bool) EnsureIn

func (this *Bool) EnsureIn(value ...bool) *Bool

func (*Bool) EnsureTrue

func (this *Bool) EnsureTrue() *Bool

func (*Bool) Float64

func (this *Bool) Float64() *Float64

func (*Bool) Int

func (this *Bool) Int() *Int

func (*Bool) String

func (this *Bool) String() *String

func (*Bool) Value

func (this *Bool) Value() bool

type Float64

type Float64 struct {
	// contains filtered or unexported fields
}

func NewFloat64

func NewFloat64(name string, value interface{}) *Float64

func (*Float64) Bool

func (this *Float64) Bool() *Bool

func (*Float64) CodeMessage

func (this *Float64) CodeMessage(codeMessage *_codeMessage.CodeMessage) *Float64

func (*Float64) Default

func (this *Float64) Default(value float64) *Float64

func (*Float64) EnsureBetween

func (this *Float64) EnsureBetween(min float64, max float64) *Float64

func (*Float64) EnsureLength

func (this *Float64) EnsureLength(length int) *Float64

func (*Float64) EnsureLengthBetween

func (this *Float64) EnsureLengthBetween(min int, max int) *Float64

func (*Float64) EnsureLengthMax

func (this *Float64) EnsureLengthMax(max int) *Float64

func (*Float64) EnsureLengthMin

func (this *Float64) EnsureLengthMin(min int) *Float64

func (*Float64) EnsureMax

func (this *Float64) EnsureMax(max float64) *Float64

func (*Float64) EnsureMin

func (this *Float64) EnsureMin(min float64) *Float64

func (*Float64) Int

func (this *Float64) Int() *Int

func (*Float64) String

func (this *Float64) String() *String

func (*Float64) Value

func (this *Float64) Value() float64

type Int

type Int struct {
	// contains filtered or unexported fields
}

func NewInt

func NewInt(name string, value interface{}) *Int

func (*Int) Bool

func (this *Int) Bool() *Bool

func (*Int) CodeMessage

func (this *Int) CodeMessage(codeMessage *_codeMessage.CodeMessage) *Int

func (*Int) Default

func (this *Int) Default(value int) *Int

func (*Int) EnsureBetween

func (this *Int) EnsureBetween(min int, max int) *Int

func (*Int) EnsureIn

func (this *Int) EnsureIn(value ...int) *Int

func (*Int) EnsureLength

func (this *Int) EnsureLength(length int) *Int

func (*Int) EnsureLengthBetween

func (this *Int) EnsureLengthBetween(min int, max int) *Int

func (*Int) EnsureLengthMax

func (this *Int) EnsureLengthMax(max int) *Int

func (*Int) EnsureLengthMin

func (this *Int) EnsureLengthMin(min int) *Int

func (*Int) EnsureMax

func (this *Int) EnsureMax(max int) *Int

func (*Int) EnsureMin

func (this *Int) EnsureMin(min int) *Int

func (*Int) Float64

func (this *Int) Float64() *Float64

func (*Int) String

func (this *Int) String() *String

func (*Int) Value

func (this *Int) Value() int

type String

type String struct {
	// contains filtered or unexported fields
}

func NewString

func NewString(name string, value interface{}) *String

func (*String) Bool

func (this *String) Bool() *Bool

func (*String) CodeMessage

func (this *String) CodeMessage(codeMessage *_codeMessage.CodeMessage) *String

func (*String) Default

func (this *String) Default(value string) *String

func (*String) EnsureEmpty

func (this *String) EnsureEmpty() *String

func (*String) EnsureIn

func (this *String) EnsureIn(value ...string) *String

func (*String) EnsureLength

func (this *String) EnsureLength(length int) *String

func (*String) EnsureLengthBetween

func (this *String) EnsureLengthBetween(min int, max int) *String

func (*String) EnsureLengthMax

func (this *String) EnsureLengthMax(max int) *String

func (*String) EnsureLengthMin

func (this *String) EnsureLengthMin(min int) *String

func (*String) EnsureNotEmpty

func (this *String) EnsureNotEmpty() *String

func (*String) EnsureRegexp

func (this *String) EnsureRegexp(pattern string) *String

func (*String) Float64

func (this *String) Float64() *Float64

func (*String) Int

func (this *String) Int() *Int

func (*String) Value

func (this *String) Value() string

Jump to

Keyboard shortcuts

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