Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AssignableTo (0.1 sec)

  1. schema/field.go

    		} else {
    			reflectV := reflect.ValueOf(v)
    			// Optimal value type acquisition for v
    			reflectValType := reflectV.Type()
    
    			if reflectValType.AssignableTo(field.FieldType) {
    				if reflectV.Kind() == reflect.Ptr && reflectV.Elem().Kind() == reflect.Ptr {
    					reflectV = reflect.Indirect(reflectV)
    				}
    				field.ReflectValueOf(ctx, value).Set(reflectV)
    				return
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. association.go

    				reflect.Copy(fieldValue, oldFieldValue)
    			}
    
    			appendToFieldValues := func(ev reflect.Value) {
    				if ev.Type().AssignableTo(elemType) {
    					fieldValue = reflect.Append(fieldValue, ev)
    				} else if ev.Type().Elem().AssignableTo(elemType) {
    					fieldValue = reflect.Append(fieldValue, ev.Elem())
    				} else {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top