add func for foreach tags

This commit is contained in:
zhangyongding
2023-08-08 11:07:34 +08:00
parent 73b1f4d410
commit 3c091eb813
3 changed files with 16 additions and 16 deletions
+2
View File
@@ -29,6 +29,7 @@ type structField struct {
Tags []string
IsQuoted bool
DBTag string
Field reflect.StructField
omitEmptyTags omitEmptyTagMap
}
@@ -136,6 +137,7 @@ func (sfs *structFields) parse(t reflect.Type, mapper FieldMapperFunc, prefix st
Tags: tags,
IsQuoted: isQuoted,
DBTag: dbtag,
Field: field,
omitEmptyTags: omitEmptyTags,
}