Added radio form element example.
This commit is contained in:
parent
da7044654c
commit
8ca11c90e1
2 changed files with 18 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ type (
|
|||
|
||||
contactForm struct {
|
||||
Email string `form:"email" validate:"required,email"`
|
||||
Department string `form:"department" validate:"required,oneof=sales marketing hr"`
|
||||
Message string `form:"message" validate:"required"`
|
||||
Submission controller.FormSubmission
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue