Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 410 for elem5 (0.04 sec)

  1. src/go/types/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.6K bytes
    - Viewed (0)
  2. src/net/url/url_test.go

    			base: "https://go.googlesource.com/a/b",
    			elem: []string{"/go"},
    			out:  "https://go.googlesource.com/a/b/go",
    		},
    		{
    			base: "/",
    			elem: nil,
    			out:  "/",
    		},
    		{
    			base: "a",
    			elem: nil,
    			out:  "a",
    		},
    		{
    			base: "a",
    			elem: []string{"b"},
    			out:  "a/b",
    		},
    		{
    			base: "a",
    			elem: []string{"../b"},
    			out:  "b",
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    	for _, arg := range fields[1:] {
    		for _, elem := range strings.Split(arg, ",") {
    			if strings.HasPrefix(elem, "!!") {
    				check.pass.Reportf(pos, "invalid double negative in build constraint: %s", arg)
    				check.crossCheck = false
    				continue
    			}
    			elem = strings.TrimPrefix(elem, "!")
    			for _, c := range elem {
    				if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/encoding/xml/read.go

    	// usefully addressable.
    	if val.Kind() == reflect.Interface && !val.IsNil() {
    		e := val.Elem()
    		if e.Kind() == reflect.Pointer && !e.IsNil() {
    			val = e
    		}
    	}
    
    	if val.Kind() == reflect.Pointer {
    		if val.IsNil() {
    			val.Set(reflect.New(val.Type().Elem()))
    		}
    		val = val.Elem()
    	}
    
    	if val.CanInterface() && val.Type().Implements(unmarshalerType) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  6. src/reflect/deepequal.go

    		if v1.Type().Elem().Kind() == Uint8 {
    			return bytealg.Equal(v1.Bytes(), v2.Bytes())
    		}
    		for i := 0; i < v1.Len(); i++ {
    			if !deepValueEqual(v1.Index(i), v2.Index(i), visited) {
    				return false
    			}
    		}
    		return true
    	case Interface:
    		if v1.IsNil() || v2.IsNil() {
    			return v1.IsNil() == v2.IsNil()
    		}
    		return deepValueEqual(v1.Elem(), v2.Elem(), visited)
    	case Pointer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. src/runtime/map_faststr.go

    			}
    			// Clear key's pointer.
    			k.str = nil
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*2*goarch.PtrSize+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/conversions.go

    					*cause = "conversion of slice to array requires go1.20 or later"
    				}
    				return false
    			}
    		case *Pointer:
    			if a, _ := under(a.Elem()).(*Array); a != nil {
    				if Identical(s.Elem(), a.Elem()) {
    					if check == nil || check.allowVersion(x, go1_17) {
    						return true
    					}
    					// check != nil
    					if cause != nil {
    						*cause = "conversion of slice to array pointer requires go1.17 or later"
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/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.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    //
    // All elements are of size 4. Tags may be up to 4 bytes long. Excess bytes can
    // be used to store additional information about the tag.
    type Index string
    
    // Elem returns the element data at the given index.
    func (s Index) Elem(x int) string {
    	return string(s[x*4 : x*4+4])
    }
    
    // Index reports the index of the given key or -1 if it could not be found.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top