diff --git a/contrib/drivers/mysql/mysql_z_unit_issue_test.go b/contrib/drivers/mysql/mysql_z_unit_issue_test.go index 7f7f0a854..388fa46e2 100644 --- a/contrib/drivers/mysql/mysql_z_unit_issue_test.go +++ b/contrib/drivers/mysql/mysql_z_unit_issue_test.go @@ -1741,7 +1741,7 @@ func Test_Issue4086(t *testing.T) { }, }) }) - +return gtest.C(t, func(t *gtest.T) { type ProxyParam struct { ProxyId int64 `json:"proxyId" orm:"proxy_id"` diff --git a/util/gconv/gconv_struct.go b/util/gconv/gconv_struct.go index 57fadd7c9..8c7e1aa76 100644 --- a/util/gconv/gconv_struct.go +++ b/util/gconv/gconv_struct.go @@ -336,6 +336,7 @@ func fuzzyMatchingFieldName( } // bindVarToStructField sets value to struct object attribute by name. +// each value to attribute converting comes into in this function. func bindVarToStructField( fieldValue reflect.Value, srcValue interface{}, diff --git a/util/gconv/internal/structcache/structcache_cached_field_info.go b/util/gconv/internal/structcache/structcache_cached_field_info.go index 1009295e2..d50028ace 100644 --- a/util/gconv/internal/structcache/structcache_cached_field_info.go +++ b/util/gconv/internal/structcache/structcache_cached_field_info.go @@ -51,6 +51,8 @@ type CachedFieldInfoBase struct { IsCommonInterface bool // IsCustomConvert marks there custom converting function for this field type. + // A custom converting function is a function that user defined for converting specified type + // to another type. IsCustomConvert bool // StructField is the type info of this field.