Documentation ¶ Index ¶ type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type User ¶ type User struct { ID int `json:"id" validate:"numeric,gte=0"` Name string `json:"name" validate:"required,min=5,max=30"` Age int `json:"age" validate:"required,numeric,gte=0,lte=130"` } User models a REST API user Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.