This commit is contained in:
Владислав Весельский 2022-11-25 13:00:09 +03:00
parent fa12207e07
commit 4f471d7ea6
1 changed files with 6 additions and 6 deletions

12
save.go
View File

@ -436,12 +436,12 @@ func GetChangedRootStructFields(data meta.IMetaStruct, fieldNames []string) map[
} }
func sliceOfStringsContains(slice []string, v string) bool { func sliceOfStringsContains(slice []string, v string) bool {
for _, item := range slice { for _, item := range slice {
if item == v { if item == v {
return true return true
} }
} }
return false return false
} }
func GetChangedStructFields(dataItem reflect.Value, fieldNamesFilter func(string) bool) (map[string]reflect.Value, error) { func GetChangedStructFields(dataItem reflect.Value, fieldNamesFilter func(string) bool) (map[string]reflect.Value, error) {