Fix typo'd variable
Cette révision appartient à :
Parent
e139f5e4db
révision
ba1f48b08c
|
@ -12,7 +12,7 @@ import (
|
||||||
|
|
||||||
// ValidateForm : Check if a form is valid according to its tags
|
// ValidateForm : Check if a form is valid according to its tags
|
||||||
func ValidateForm(form interface{}, mes *msg.Messages) {
|
func ValidateForm(form interface{}, mes *msg.Messages) {
|
||||||
result, err := govalidator.ValidateStruct(post)
|
result, err := govalidator.ValidateStruct(form)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
println("error: " + err.Error())
|
println("error: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
Référencer dans un nouveau ticket