Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidator ¶
func NewValidator() *validate.XValidator
func ValidateValuer ¶
func ValidateValuer(field validator.FieldLevel) bool
Types ¶
type Person ¶
type Person struct { gorm.Model `json:"-" tstype:"-" skip:"yes"` ID uint `json:"-" tstype:"-" gorm:"primaryKey"` Owner string `json:"-" tstype:"-" validate:"alphanum" skip:"yes"` Name string `json:"name" validate:"required" tstype:",required" example:"john"` Age uint `json:"age" validate:"number" tstype:"number" example:"13"` Gender enum.Enum[enums.Gender] `json:"gender" tstype:"'male' | 'female' | 'other' | ''" example:"male"` }
Click to show internal directories.
Click to hide internal directories.