Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for bad2 (0.05 sec)

  1. doc/go_spec.html

    </p>
    
    <pre>
    // illegal: Bad may not embed itself
    type Bad interface {
    	Bad
    }
    
    // illegal: Bad1 may not embed itself using Bad2
    type Bad1 interface {
    	Bad2
    }
    type Bad2 interface {
    	Bad1
    }
    
    // illegal: Bad3 may not embed a union containing Bad3
    type Bad3 interface {
    	~int | ~string | Bad3
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  2. src/net/http/client_test.go

    	}
    	if tr.req.Close {
    		t.Error("got Close true, want false")
    	}
    	// Depending on map iteration, body can be either of these.
    	expectedBody := "foo=bar&foo=bar2&bar=baz"
    	expectedBody1 := "bar=baz&foo=bar&foo=bar2"
    	if g, e := tr.req.ContentLength, int64(len(expectedBody)); g != e {
    		t.Errorf("got ContentLength %d, want %d", g, e)
    	}
    	bodyb, err := io.ReadAll(tr.req.Body)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  3. src/net/http/clientserver_test.go

    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.Header().Set("Foo", "Bar")
    		w.Header().Set("Trailer:Foo", "Baz")
    		w.(Flusher).Flush()
    		w.Header().Add("Trailer:Foo", "Baz2")
    		w.Header().Set("Trailer:Bar", "Quux")
    	}))
    	res, err := cst.c.Get(cst.ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if _, err := io.Copy(io.Discard, res.Body); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  4. pkg/apis/core/validation/validation_test.go

    		"rro with incompatible propagation":      {{Name: "123", MountPath: "/rro-bad2", ReadOnly: true, RecursiveReadOnly: ptr.To(core.RecursiveReadOnlyEnabled), MountPropagation: ptr.To(core.MountPropagationHostToContainer)}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top