- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for NumField (0.06 seconds)
-
utils/tests/utils.go
return } } if reflect.ValueOf(got).Kind() == reflect.Struct { if reflect.ValueOf(expect).Kind() == reflect.Struct { if reflect.ValueOf(got).NumField() == reflect.ValueOf(expect).NumField() { exported := false for i := 0; i < reflect.ValueOf(got).NumField(); i++ { if fieldStruct := reflect.ValueOf(got).Type().Field(i); ast.IsExported(fieldStruct.Name) { exported = true
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Mar 10 09:21:56 GMT 2023 - 3.9K bytes - Click Count (0) -
clause/expression.go
reflectValue = reflect.Indirect(reflectValue) switch reflectValue.Kind() { case reflect.Struct: modelType := reflectValue.Type() for i := 0; i < modelType.NumField(); i++ { if fieldStruct := modelType.Field(i); ast.IsExported(fieldStruct.Name) { namedMap[fieldStruct.Name] = reflectValue.Field(i).Interface() if fieldStruct.Anonymous {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Nov 04 07:04:52 GMT 2025 - 8K bytes - Click Count (0) -
tests/migrate_test.go
} typ := reflect.Indirect(reflect.ValueOf(&UserMigrateColumn2{})).Type() numField := typ.NumField() if numField != len(columnTypes) { t.Fatalf("column's number not match struct and ddl, %d != %d", numField, len(columnTypes)) } namer := schema.NamingStrategy{} for i := 0; i < numField; i++ { expectName := namer.ColumnName("", typ.Field(i).Name) if columnTypes[i].Name() != expectName {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:49:01 GMT 2026 - 66.3K bytes - Click Count (0) -
schema/field.go
for i := 0; i < rvType.NumField(); i++ { for key, value := range ParseTagSetting(rvType.Field(i).Tag.Get("gorm"), ";") { if _, ok := field.TagSettings[key]; !ok { field.TagSettings[key] = value } } } for i := 0; i < rvType.NumField(); i++ { newFieldType := rvType.Field(i).TypeCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 32.2K bytes - Click Count (0) -
schema/schema.go
if v, ok := cacheStore.Load(schemaCacheKey); ok { s := v.(*Schema) // Wait for the initialization of other goroutines to complete <-s.initialized return s, s.err } for i := 0; i < modelType.NumField(); i++ { if fieldStruct := modelType.Field(i); ast.IsExported(fieldStruct.Name) { if field := schema.ParseField(fieldStruct); field.EmbeddedSchema != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 13.3K bytes - Click Count (0) -
api/go1.txt
pkg reflect, method (Value) MapIndex(Value) Value pkg reflect, method (Value) MapKeys() []Value pkg reflect, method (Value) Method(int) Value pkg reflect, method (Value) MethodByName(string) Value pkg reflect, method (Value) NumField() int pkg reflect, method (Value) NumMethod() int pkg reflect, method (Value) OverflowComplex(complex128) bool pkg reflect, method (Value) OverflowFloat(float64) bool pkg reflect, method (Value) OverflowInt(int64) bool
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Click Count (0)