_validator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 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) Int64

func (this *Bool) Int64() *Int64

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) Int64

func (this *Float64) Int64() *Int64

func (*Float64) String

func (this *Float64) String() *String

func (*Float64) Value

func (this *Float64) Value() float64

type Int64

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

func NewInt64

func NewInt64(name string, value interface{}) *Int64

func (*Int64) Bool

func (this *Int64) Bool() *Bool

func (*Int64) CodeMessage

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

func (*Int64) Default

func (this *Int64) Default(value int64) *Int64

func (*Int64) EnsureBetween

func (this *Int64) EnsureBetween(min int64, max int64) *Int64

func (*Int64) EnsureIn

func (this *Int64) EnsureIn(value ...int64) *Int64

func (*Int64) EnsureLength

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

func (*Int64) EnsureLengthBetween

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

func (*Int64) EnsureLengthMax

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

func (*Int64) EnsureLengthMin

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

func (*Int64) EnsureMax

func (this *Int64) EnsureMax(max int64) *Int64

func (*Int64) EnsureMin

func (this *Int64) EnsureMin(min int64) *Int64

func (*Int64) Float64

func (this *Int64) Float64() *Float64

func (*Int64) String

func (this *Int64) String() *String

func (*Int64) Value

func (this *Int64) Value() int64

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) Int64

func (this *String) Int64() *Int64

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