Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isPtr (0.05 sec)

  1. callbacks/associations.go

    					var (
    						rValLen   = db.Statement.ReflectValue.Len()
    						objs      = make([]reflect.Value, 0, rValLen)
    						fieldType = rel.Field.FieldType
    						isPtr     = fieldType.Kind() == reflect.Ptr
    					)
    
    					if !isPtr {
    						fieldType = reflect.PtrTo(fieldType)
    					}
    
    					elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. scan.go

    		}
    
    		reflectValueType := reflectValue.Type()
    		switch reflectValueType.Kind() {
    		case reflect.Array, reflect.Slice:
    			reflectValueType = reflectValueType.Elem()
    		}
    		isPtr := reflectValueType.Kind() == reflect.Ptr
    		if isPtr {
    			reflectValueType = reflectValueType.Elem()
    		}
    
    		if sch != nil {
    			if reflectValueType != sch.ModelType && reflectValueType.Kind() == reflect.Struct {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top