Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct { Type string `json:"type" default:"none" validate:"required,min=3,max=32"` Salary int `json:"salary" default:"200" validate:"required,number"` }
Job struct
type User ¶
type User struct { Name string `json:"name" default:"john" validate:"required,min=3,max=32"` IsActive bool `json:"is_active" default:"true" validate:"required,eq=True|eq=False"` Email string `json:"email" validate:"required,email,min=6,max=32"` Job Job `json:"job" validate:"dive"` }
User struct
Click to show internal directories.
Click to hide internal directories.