Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemBlog ¶
type ItemBlog struct { ID primitive.ObjectID `json:"_id" binding:"required" validate:"required"` Title string `json:"title" validate:"required,min=3,max=500"` Description string `json:"description" validate:"required,min=3,max=2000"` Slug string `json:"slug" validate:"required,min=3,max=200"` ImgURL *string `json:"imgUrl,omitempty" validate:"omitempty,uri,max=200"` Score float64 `json:"score," validate:"required,min=0,max=1"` Tags []string `json:"tags" validate:"required,dive,uppercase"` }
func EmptyItemBlog ¶
func EmptyItemBlog() *ItemBlog
func (*ItemBlog) ValidateErrors ¶
Click to show internal directories.
Click to hide internal directories.