Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for itemtype (0.15 sec)

  1. schema/field.go

    	ByteReflectType    = reflect.TypeOf(uint8(0))
    )
    
    type (
    	// DataType GORM data type
    	DataType string
    	// TimeType GORM time type
    	TimeType int64
    )
    
    // GORM time types
    const (
    	UnixTime        TimeType = 1
    	UnixSecond      TimeType = 2
    	UnixMillisecond TimeType = 3
    	UnixNanosecond  TimeType = 4
    )
    
    // GORM fields types
    const (
    	Bool   DataType = "bool"
    	Int    DataType = "int"
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  2. association.go

    				if ev.Type().AssignableTo(elemType) {
    					fieldValue = reflect.Append(fieldValue, ev)
    				} else if ev.Type().Elem().AssignableTo(elemType) {
    					fieldValue = reflect.Append(fieldValue, ev.Elem())
    				} else {
    					association.Error = fmt.Errorf("unsupported data type: %v for relation %s", ev.Type(), association.Relationship.Name)
    				}
    
    				if elemType.Kind() == reflect.Struct {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
Back to top