Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for typeOff (0.11 sec)

  1. src/reflect/value.go

    			panic("reflect: " + op + " of method on nil interface value")
    		}
    		rcvrtype = iface.itab.Type
    		fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
    		t = (*funcType)(unsafe.Pointer(tt.typeOff(m.Typ)))
    	} else {
    		rcvrtype = v.typ()
    		ms := v.typ().ExportedMethods()
    		if uint(i) >= uint(len(ms)) {
    			panic("reflect: internal error: invalid method index")
    		}
    		m := ms[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    		{TypeOf(float64(0)), ""},
    		{TypeOf(complex64(0)), ""},
    		{TypeOf(complex128(0)), ""},
    		{TypeOf(byte(0)), ""},
    		{TypeOf(rune(0)), ""},
    		{TypeOf([]byte(nil)), ""},
    		{TypeOf([]rune(nil)), ""},
    		{TypeOf(string("")), ""},
    		{TypeOf((*any)(nil)).Elem(), ""},
    		{TypeOf((*byte)(nil)), ""},
    		{TypeOf((*rune)(nil)), ""},
    		{TypeOf((*int64)(nil)), ""},
    		{TypeOf(map[string]int{}), ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. pkg/api/pod/util_test.go

    		"Spec.Volumes[*].VolumeSource.StorageOS.SecretRef",
    		"Spec.Volumes[*].VolumeSource.CSI.NodePublishSecretRef",
    	)
    	secretPaths := collectResourcePaths(t, "secret", nil, "", reflect.TypeOf(&api.Pod{}))
    	secretPaths = secretPaths.Difference(excludedSecretPaths)
    	if missingPaths := expectedSecretPaths.Difference(secretPaths); len(missingPaths) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    Type declarations come in two forms: alias declarations and type definitions.
    </p>
    
    <pre class="ebnf">
    TypeDecl = "type" ( TypeSpec | "(" { TypeSpec ";" } ")" ) .
    TypeSpec = AliasDecl | TypeDef .
    </pre>
    
    <h4 id="Alias_declarations">Alias declarations</h4>
    
    <p>
    An alias declaration binds an identifier to the given type.
    </p>
    
    <pre class="ebnf">
    AliasDecl = identifier "=" Type .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/database/sql/sql_test.go

    		// maybe I should flesh out the fakeConn.Exec
    		// implementation so this properly fails.
    		// t.Errorf("expected error inserting nil name with Exec")
    	}
    
    	paramtype := reflect.TypeOf(spec.rows[0].nullParam)
    	bindVal := reflect.New(paramtype).Interface()
    
    	for i := 0; i < 5; i++ {
    		id := i + 1
    		if err := db.QueryRow("SELECT|t|nullf|id=?", id).Scan(bindVal); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    		ch <- r.Context()
    	}), func(ts *httptest.Server) {
    		ts.Config.BaseContext = func(ln net.Listener) context.Context {
    			if strings.Contains(reflect.TypeOf(ln).String(), "onceClose") {
    				t.Errorf("unexpected onceClose listener type %T", ln)
    			}
    			return context.WithValue(context.Background(), baseKey{}, "base")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top