Merge pull request #4664 from eltociear/patch-1

Fix typo in templatefunc.go
This commit is contained in:
Ming Deng 2021-06-16 22:09:43 +08:00 committed by GitHub
commit 6c068e1539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,7 +503,7 @@ func isValidForInput(fType string) bool {
}
// parseFormTag takes the stuct-tag of a StructField and parses the `form` value.
// returned are the form label, name-property, type and wether the field should be ignored.
// returned are the form label, name-property, type and whether the field should be ignored.
func parseFormTag(fieldT reflect.StructField) (label, name, fType string, id string, class string, ignored bool, required bool) {
tags := strings.Split(fieldT.Tag.Get("form"), ",")
label = fieldT.Name + ": "