Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fieldIndex (0.07 sec)

  1. schema/field.go

    	field.setupNewValuePool()
    
    	// ValueOf returns field's value and if it is zero
    	fieldIndex := field.StructField.Index[0]
    	switch {
    	case len(field.StructField.Index) == 1 && fieldIndex > 0:
    		field.ValueOf = func(ctx context.Context, value reflect.Value) (interface{}, bool) {
    			fieldValue := reflect.Indirect(value).Field(fieldIndex)
    			return fieldValue.Interface(), fieldValue.IsZero()
    		}
    	default:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top