Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 177 for elem1 (0.16 sec)

  1. 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)
  2. src/go/types/typestring.go

    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    		w.string(strconv.FormatInt(t.len, 10))
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    				w.byte(';')
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/predicates.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Slice:
    		// Two slice types are identical if they have identical element types.
    		if y, ok := y.(*Slice); ok {
    			return c.identical(x.elem, y.elem, p)
    		}
    
    	case *Struct:
    		// Two struct types are identical if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typexpr.go

    			typ.len = -1
    		}
    		typ.elem = check.varType(e.Elem)
    		if typ.len >= 0 {
    			return typ
    		}
    		// report error if we encountered [...]
    
    	case *syntax.SliceType:
    		typ := new(Slice)
    		setDefType(def, typ)
    		typ.elem = check.varType(e.Elem)
    		return typ
    
    	case *syntax.DotsType:
    		// dots are handled explicitly where they are legal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/rsc.io/markdown/parse.go

    		prevEnd = b.Pos().EndLine
    		s.prefix1 = "" // item prefix only for first block
    	}
    }
    
    var (
    	blockType   = reflect.TypeOf(new(Block)).Elem()
    	blocksType  = reflect.TypeOf(new([]Block)).Elem()
    	inlinesType = reflect.TypeOf(new([]Inline)).Elem()
    )
    
    func printb(buf *bytes.Buffer, b Block, prefix string) {
    	fmt.Fprintf(buf, "(%T", b)
    	v := reflect.ValueOf(b)
    	v = reflect.Indirect(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    		return nil
    	case *types.Pointer:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Slice:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Array:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Chan:
    		return find(obj, T.Elem(), append(path, opElem), seen)
    	case *types.Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/clean/clean.go

    		}
    		keep(p.GoFiles)
    		keep(p.CgoFiles)
    		keep(p.TestGoFiles)
    		keep(p.XTestGoFiles)
    	}
    
    	_, elem := filepath.Split(p.Dir)
    	var allRemove []string
    
    	// Remove dir-named executable only if this is package main.
    	if p.Name == "main" {
    		allRemove = append(allRemove,
    			elem,
    			elem+".exe",
    			p.DefaultExecName(),
    			p.DefaultExecName()+".exe",
    		)
    	}
    
    	// Remove package test executables.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/runtime/sema.go

    // queue adds s to the blocked goroutines in semaRoot.
    func (root *semaRoot) queue(addr *uint32, s *sudog, lifo bool) {
    	s.g = getg()
    	s.elem = unsafe.Pointer(addr)
    	s.next = nil
    	s.prev = nil
    	s.waiters = 0
    
    	var last *sudog
    	pt := &root.treap
    	for t := *pt; t != nil; t = *pt {
    		if t.elem == unsafe.Pointer(addr) {
    			// Already have addr in list.
    			if lifo {
    				// Substitute s in t's place in treap.
    				*pt = s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. src/net/rpc/server.go

    		argv = reflect.New(mtype.ArgType.Elem())
    	} else {
    		argv = reflect.New(mtype.ArgType)
    		argIsValue = true
    	}
    	// argv guaranteed to be a pointer now.
    	if err = codec.ReadRequestBody(argv.Interface()); err != nil {
    		return
    	}
    	if argIsValue {
    		argv = argv.Elem()
    	}
    
    	replyv = reflect.New(mtype.ReplyType.Elem())
    
    	switch mtype.ReplyType.Elem().Kind() {
    	case reflect.Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K 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