1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-05-13 14:19:44 +08:00
parent 25e8c8c58b
commit d4d68dc263
5 changed files with 48 additions and 4 deletions

View File

@ -41,9 +41,7 @@ func DeepCopy() optionFunc {
}
func SkipField(field string) optionFunc {
return func(o *option) {
o.SkipFields = append(o.SkipFields, field)
}
return SkipFields([]string{field})
}
func SkipFields(fields []string) optionFunc {