v

package
v1.0.0-alpha.25 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 3 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 bool

func (*Bool) False

func (b *Bool) False() *Bool

func (*Bool) Msg

func (b *Bool) Msg(msg string) *Bool

func (*Bool) MsgGroup

func (b *Bool) MsgGroup(msg string) *Bool

func (*Bool) True

func (b *Bool) True() *Bool

func (*Bool) Value

func (b *Bool) Value() bool

type Float32

type Float32 float32

func (*Float32) Equal

func (f *Float32) Equal(val float64) *Float32

func (*Float32) Max

func (f *Float32) Max(max float64) *Float32

func (*Float32) Min

func (f *Float32) Min(min float64) *Float32

func (*Float32) Msg

func (f *Float32) Msg(msg string) *Float32

func (*Float32) MsgGroup

func (f *Float32) MsgGroup(msg string) *Float32

func (*Float32) Required

func (f *Float32) Required() *Float32

func (*Float32) Value

func (f *Float32) Value() float32

type Float64

type Float64 float64

func (*Float64) Equal

func (f *Float64) Equal(val float64) *Float64

func (*Float64) Max

func (f *Float64) Max(max float64) *Float64

func (*Float64) Min

func (f *Float64) Min(min float64) *Float64

func (*Float64) Msg

func (f *Float64) Msg(msg string) *Float64

func (*Float64) MsgGroup

func (f *Float64) MsgGroup(msg string) *Float64

func (*Float64) Required

func (f *Float64) Required() *Float64

func (*Float64) Value

func (f *Float64) Value() float64

type Int

type Int int

func (*Int) Equal

func (i *Int) Equal(val int) *Int

func (*Int) In

func (i *Int) In(vals ...int) *Int

In 验证值是否在列表中 (替代 OneOf)

func (*Int) Max

func (i *Int) Max(max int) *Int

func (*Int) Min

func (i *Int) Min(min int) *Int

func (*Int) Msg

func (i *Int) Msg(msg string) *Int

func (*Int) MsgGroup

func (i *Int) MsgGroup(msg string) *Int

func (*Int) Range

func (i *Int) Range(min, max int) *Int

func (*Int) Required

func (i *Int) Required() *Int

func (*Int) Value

func (i *Int) Value() int

type Int8

type Int8 int8

func (*Int8) Equal

func (i *Int8) Equal(val int) *Int8

func (*Int8) In

func (i *Int8) In(vals ...int) *Int8

func (*Int8) Max

func (i *Int8) Max(max int) *Int8

func (*Int8) Min

func (i *Int8) Min(min int) *Int8

func (*Int8) Msg

func (i *Int8) Msg(msg string) *Int8

func (*Int8) MsgGroup

func (i *Int8) MsgGroup(msg string) *Int8

func (*Int8) Required

func (i *Int8) Required() *Int8

func (*Int8) Value

func (i *Int8) Value() int8

type Int16

type Int16 int16

func (*Int16) Equal

func (i *Int16) Equal(val int) *Int16

func (*Int16) In

func (i *Int16) In(vals ...int) *Int16

func (*Int16) Max

func (i *Int16) Max(max int) *Int16

func (*Int16) Min

func (i *Int16) Min(min int) *Int16

func (*Int16) Msg

func (i *Int16) Msg(msg string) *Int16

func (*Int16) MsgGroup

func (i *Int16) MsgGroup(msg string) *Int16

func (*Int16) Required

func (i *Int16) Required() *Int16

func (*Int16) Value

func (i *Int16) Value() int16

type Int32

type Int32 int32

func (*Int32) Equal

func (i *Int32) Equal(val int) *Int32

func (*Int32) In

func (i *Int32) In(vals ...int) *Int32

func (*Int32) Max

func (i *Int32) Max(max int) *Int32

func (*Int32) Min

func (i *Int32) Min(min int) *Int32

func (*Int32) Msg

func (i *Int32) Msg(msg string) *Int32

func (*Int32) MsgGroup

func (i *Int32) MsgGroup(msg string) *Int32

func (*Int32) Required

func (i *Int32) Required() *Int32

func (*Int32) Value

func (i *Int32) Value() int32

type Int64

type Int64 int64

func (*Int64) Equal

func (i *Int64) Equal(val int64) *Int64

func (*Int64) In

func (i *Int64) In(vals ...int64) *Int64

func (*Int64) Max

func (i *Int64) Max(max int64) *Int64

func (*Int64) Min

func (i *Int64) Min(min int64) *Int64

func (*Int64) Msg

func (i *Int64) Msg(msg string) *Int64

func (*Int64) MsgGroup

func (i *Int64) MsgGroup(msg string) *Int64

func (*Int64) Required

func (i *Int64) Required() *Int64

func (*Int64) Value

func (i *Int64) Value() int64

type Slice

type Slice[T any] []T

func (*Slice[T]) Len

func (s *Slice[T]) Len(len int) *Slice[T]

func (*Slice[T]) MaxLen

func (s *Slice[T]) MaxLen(max int) *Slice[T]

func (*Slice[T]) MinLen

func (s *Slice[T]) MinLen(min int) *Slice[T]

func (*Slice[T]) Msg

func (s *Slice[T]) Msg(msg string) *Slice[T]

func (*Slice[T]) MsgGroup

func (s *Slice[T]) MsgGroup(msg string) *Slice[T]

func (*Slice[T]) RangeLen

func (s *Slice[T]) RangeLen(min, max int) *Slice[T]

func (*Slice[T]) Required

func (s *Slice[T]) Required() *Slice[T]

func (*Slice[T]) Unique

func (s *Slice[T]) Unique() *Slice[T]

func (*Slice[T]) Value

func (s *Slice[T]) Value() []T

type String

type String string

func (*String) Alpha

func (s *String) Alpha() *String

func (*String) AlphaNum

func (s *String) AlphaNum() *String

func (*String) Contains

func (s *String) Contains(sub string) *String

func (*String) Email

func (s *String) Email() *String

func (*String) EndsWith

func (s *String) EndsWith(suffix string) *String

func (*String) HasValue

func (s *String) HasValue() bool

func (*String) IP

func (s *String) IP() *String

func (*String) In

func (s *String) In(vals ...string) *String

func (*String) Len

func (s *String) Len(len int) *String

func (*String) Lowercase

func (s *String) Lowercase() *String

func (*String) MaxLen

func (s *String) MaxLen(max int) *String

func (*String) MinLen

func (s *String) MinLen(min int) *String

func (*String) Msg

func (s *String) Msg(msg string) *String

func (*String) MsgGroup

func (s *String) MsgGroup(msg string) *String

func (*String) Numeric

func (s *String) Numeric() *String

func (*String) RangeLen

func (s *String) RangeLen(min, max int) *String

func (*String) Regex

func (s *String) Regex(pattern string) *String

func (*String) Required

func (s *String) Required() *String

func (*String) StartsWith

func (s *String) StartsWith(prefix string) *String

func (*String) URL

func (s *String) URL() *String

func (*String) UUID

func (s *String) UUID() *String

func (*String) Uppercase

func (s *String) Uppercase() *String

func (*String) Value

func (s *String) Value() string

type Time

type Time time.Time

func (*Time) After

func (t *Time) After(val time.Time) *Time

func (*Time) Before

func (t *Time) Before(val time.Time) *Time

func (*Time) Msg

func (t *Time) Msg(msg string) *Time

func (*Time) MsgGroup

func (t *Time) MsgGroup(msg string) *Time

func (*Time) Required

func (t *Time) Required() *Time

func (*Time) Value

func (t *Time) Value() time.Time

type Uint

type Uint uint

func (*Uint) Equal

func (i *Uint) Equal(val uint) *Uint

func (*Uint) In

func (i *Uint) In(vals ...uint) *Uint

func (*Uint) Max

func (i *Uint) Max(max uint) *Uint

func (*Uint) Min

func (i *Uint) Min(min uint) *Uint

func (*Uint) Msg

func (i *Uint) Msg(msg string) *Uint

func (*Uint) MsgGroup

func (i *Uint) MsgGroup(msg string) *Uint

func (*Uint) Required

func (i *Uint) Required() *Uint

func (*Uint) Value

func (i *Uint) Value() uint

type Uint8

type Uint8 uint8

func (*Uint8) Equal

func (i *Uint8) Equal(val uint) *Uint8

func (*Uint8) In

func (i *Uint8) In(vals ...uint) *Uint8

func (*Uint8) Max

func (i *Uint8) Max(max uint) *Uint8

func (*Uint8) Min

func (i *Uint8) Min(min uint) *Uint8

func (*Uint8) Msg

func (i *Uint8) Msg(msg string) *Uint8

func (*Uint8) MsgGroup

func (i *Uint8) MsgGroup(msg string) *Uint8

func (*Uint8) Required

func (i *Uint8) Required() *Uint8

func (*Uint8) Value

func (i *Uint8) Value() uint8

type Uint16

type Uint16 uint16

func (*Uint16) Equal

func (i *Uint16) Equal(val uint) *Uint16

func (*Uint16) In

func (i *Uint16) In(vals ...uint) *Uint16

func (*Uint16) Max

func (i *Uint16) Max(max uint) *Uint16

func (*Uint16) Min

func (i *Uint16) Min(min uint) *Uint16

func (*Uint16) Msg

func (i *Uint16) Msg(msg string) *Uint16

func (*Uint16) MsgGroup

func (i *Uint16) MsgGroup(msg string) *Uint16

func (*Uint16) Required

func (i *Uint16) Required() *Uint16

func (*Uint16) Value

func (i *Uint16) Value() uint16

type Uint32

type Uint32 uint32

func (*Uint32) Equal

func (i *Uint32) Equal(val uint) *Uint32

func (*Uint32) In

func (i *Uint32) In(vals ...uint) *Uint32

func (*Uint32) Max

func (i *Uint32) Max(max uint) *Uint32

func (*Uint32) Min

func (i *Uint32) Min(min uint) *Uint32

func (*Uint32) Msg

func (i *Uint32) Msg(msg string) *Uint32

func (*Uint32) MsgGroup

func (i *Uint32) MsgGroup(msg string) *Uint32

func (*Uint32) Required

func (i *Uint32) Required() *Uint32

func (*Uint32) Value

func (i *Uint32) Value() uint32

type Uint64

type Uint64 uint64

func (*Uint64) Equal

func (i *Uint64) Equal(val uint64) *Uint64

func (*Uint64) In

func (i *Uint64) In(vals ...uint64) *Uint64

func (*Uint64) Max

func (i *Uint64) Max(max uint64) *Uint64

func (*Uint64) Min

func (i *Uint64) Min(min uint64) *Uint64

func (*Uint64) Msg

func (i *Uint64) Msg(msg string) *Uint64

func (*Uint64) MsgGroup

func (i *Uint64) MsgGroup(msg string) *Uint64

func (*Uint64) Required

func (i *Uint64) Required() *Uint64

func (*Uint64) Value

func (i *Uint64) Value() uint64

Jump to

Keyboard shortcuts

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