Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for elem3 (0.06 sec)

  1. scan.go

    				if !update {
    					if !isPtr {
    						elem = elem.Elem()
    					}
    					if isArrayKind {
    						if reflectValue.Len() >= int(db.RowsAffected) {
    							reflectValue.Index(int(db.RowsAffected - 1)).Set(elem)
    						}
    					} else {
    						reflectValue = reflect.Append(reflectValue, elem)
    					}
    				}
    			}
    
    			if !update {
    				db.Statement.ReflectValue.Set(reflectValue)
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. callbacks/preload.go

    	}
    
    	for i := 0; i < reflectResults.Len(); i++ {
    		elem := reflectResults.Index(i)
    		for idx, field := range relForeignFields {
    			fieldValues[idx], _ = field.ValueOf(tx.Statement.Context, elem)
    		}
    
    		datas, ok := identityMap[utils.ToStringKey(fieldValues...)]
    		if !ok {
    			return fmt.Errorf("failed to assign association %#v, make sure foreign fields exists", elem.Interface())
    		}
    
    		for _, data := range datas {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    		return fmt.Errorf("couldn't compute key: %v", err)
    	}
    	elem := &storeElement{Key: key, Object: event.Object}
    	elem.Labels, elem.Fields, err = w.getAttrsFunc(event.Object)
    	if err != nil {
    		return err
    	}
    
    	wcEvent := &watchCacheEvent{
    		Type:            event.Type,
    		Object:          elem.Object,
    		ObjLabels:       elem.Labels,
    		ObjFields:       elem.Fields,
    		Key:             key,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval.go

    	for i, item := range allItems {
    		elem, ok := item.(*storeElement)
    		if !ok {
    			return nil, fmt.Errorf("not a storeElement: %v", elem)
    		}
    		objLabels, objFields, err := getAttrsFunc(elem.Object)
    		if err != nil {
    			return nil, err
    		}
    		buffer.buffer[i] = &watchCacheEvent{
    			Type:            watch.Added,
    			Object:          elem.Object,
    			ObjLabels:       objLabels,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    	for chans := identical; chans < len(terms); chans++ {
    		curr, ok := terms[chans].Type().Underlying().(*types.Chan)
    		if !ok {
    			return nil
    		}
    		if !types.Identical(ch.Elem(), curr.Elem()) {
    			return nil // channel elements are not identical.
    		}
    		if ch.Dir() == types.SendRecv {
    			// ch is bidirectional. We can safely always use curr's direction.
    			ch = curr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		default:
    			return ast.NewIdent(t.Name())
    		}
    	case *types.Pointer:
    		x := TypeExpr(f, pkg, t.Elem())
    		if x == nil {
    			return nil
    		}
    		return &ast.UnaryExpr{
    			Op: token.MUL,
    			X:  x,
    		}
    	case *types.Array:
    		elt := TypeExpr(f, pkg, t.Elem())
    		if elt == nil {
    			return nil
    		}
    		return &ast.ArrayType{
    			Len: &ast.BasicLit{
    				Kind:  token.INT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/positions.go

    		case *ListExpr:
    			if l := lastExpr(n.ElemList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    
    		// types
    		case *ArrayType:
    			m = n.Elem
    		case *SliceType:
    			m = n.Elem
    		case *DotsType:
    			m = n.Elem
    		case *StructType:
    			if l := lastField(n.FieldList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    			// TODO(gri) need to take TagList into account
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    	for i := 0; i < numEvents; i++ {
    		elem := makeTestStoreElement(makeTestPod(fmt.Sprintf("pod%d", i), uint64(i)))
    		objLabels, objFields, err := getAttrsFunc(elem.Object)
    		if err != nil {
    			t.Fatal(err)
    		}
    		events[elem.Key] = &watchCacheEvent{
    			Type:            watch.Added,
    			Object:          elem.Object,
    			ObjLabels:       objLabels,
    			ObjFields:       objFields,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. schema/schema.go

    		value = reflect.New(value.Type().Elem())
    	}
    	modelType := reflect.Indirect(value).Type()
    
    	if modelType.Kind() == reflect.Interface {
    		modelType = reflect.Indirect(reflect.ValueOf(dest)).Elem().Type()
    	}
    
    	for modelType.Kind() == reflect.Slice || modelType.Kind() == reflect.Array || modelType.Kind() == reflect.Ptr {
    		modelType = modelType.Elem()
    	}
    
    	if modelType.Kind() != reflect.Struct {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. src/runtime/mfinal.go

    	}
    
    	if uintptr(e.data) != base {
    		// As an implementation detail we allow to set finalizers for an inner byte
    		// of an object if it could come from tiny alloc (see mallocgc for details).
    		if ot.Elem == nil || ot.Elem.Pointers() || ot.Elem.Size_ >= maxTinySize {
    			throw("runtime.SetFinalizer: pointer not at beginning of allocated block")
    		}
    	}
    
    	f := efaceOf(&finalizer)
    	ftyp := f._type
    	if ftyp == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top