Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleForm ¶
type ArticleForm struct { Title string `form:"title" json:"title" binding:"required,max=100"` Content string `form:"content" json:"content" binding:"required,max=1000"` }
ArticleForm ...
type CommentForm ¶
type CommentForm struct { Name string `form:"name" json:"name" binding:"required,max=100"` Comment string `form:"comment" json:"comment" binding:"required,max=1000"` }
CommentForm ...
type LoginForm ¶
type LoginForm struct { Email string `form:"email" json:"email" binding:"required,email"` Password string `form:"password" json:"password" binding:"required"` }
LoginForm ...
type PostForm ¶
type PostForm struct { Title string `form:"title" json:"title" binding:"required,max=100"` Content string `form:"content" json:"content" binding:"required,max=1000"` }
PostForm ...
type RegisterForm ¶
type RegisterForm struct { Name string `form:"name" json:"name" binding:"required,max=100"` Email string `form:"email" json:"email" binding:"required,email"` Password string `form:"password" json:"password" binding:"required"` }
RegisterForm ...
Click to show internal directories.
Click to hide internal directories.