Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 105 for ifaceeq (0.32 sec)

  1. pkg/volume/iscsi/iscsi_util_test.go

    	fakeIscsiadmOutput1 := "# BEGIN RECORD 2.0-873\n" +
    		"iface.iscsi_ifacename = default\n" +
    		"iface.transport_name = tcp\n" +
    		"iface.initiatorname = <empty>\n" +
    		"iface.mtu = 0\n" +
    		"# END RECORD"
    
    	fakeIscsiadmOutput2 := "# BEGIN RECORD 2.0-873\n" +
    		"iface.iscsi_ifacename = default\n" +
    		"iface.transport_name = cxgb4i\n" +
    		"iface.initiatorname = <empty>\n" +
    		"iface.mtu = 0\n" +
    		"# END RECORD"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 09:43:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeparam.go

    func (t *TypeParam) Underlying() Type {
    	return t.iface()
    }
    
    func (t *TypeParam) String() string { return TypeString(t, nil) }
    
    // ----------------------------------------------------------------------------
    // Implementation
    
    func (t *TypeParam) cleanup() {
    	t.iface()
    	t.check = nil
    }
    
    // iface returns the constraint interface of t.
    func (t *TypeParam) iface() *Interface {
    	bound := t.bound
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/testdata/iface_i/i.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package iface_i
    
    type I interface {
    	M()
    }
    
    type T struct {
    }
    
    func (t *T) M() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 263 bytes
    - Viewed (0)
  4. test/typeparam/issue54302.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    func A() {
    	B[int](new(G[int]))
    }
    
    func B[T any](iface interface{ M(T) }) {
    	x, ok := iface.(*G[T])
    	if !ok || iface != x {
    		panic("FAIL")
    	}
    }
    
    type G[T any] struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 06 15:20:00 UTC 2022
    - 362 bytes
    - Viewed (0)
  5. src/runtime/gcinfo_test.go

    		verifyGCInfo(t, "stack slice", &x, infoSlice)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x any
    		verifyGCInfo(t, "stack eface", &x, infoEface)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x Iface
    		verifyGCInfo(t, "stack iface", &x, infoIface)
    		runtime.KeepAlive(x)
    	}
    
    	for i := 0; i < 10; i++ {
    		verifyGCInfo(t, "heap Ptr", runtime.Escape(new(Ptr)), trimDead(infoPtr))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/build_issue62156.txt

    -- go.mod --
    module m
    
    go 1.20
    -- main.go --
    package main
    
    import "m/sub"
    
    func main() { sub.F() }
    -- sub/sub.go --
    package sub
    
    type iface interface{ m() }
    
    func F() {
    	f := func(rt []iface) []iface {
    		return append([]iface{}, rt...)
    	}
    	f(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 23:18:16 UTC 2023
    - 410 bytes
    - Viewed (0)
  7. src/go/types/typeparam.go

    func (t *TypeParam) Underlying() Type {
    	return t.iface()
    }
    
    func (t *TypeParam) String() string { return TypeString(t, nil) }
    
    // ----------------------------------------------------------------------------
    // Implementation
    
    func (t *TypeParam) cleanup() {
    	t.iface()
    	t.check = nil
    }
    
    // iface returns the constraint interface of t.
    func (t *TypeParam) iface() *Interface {
    	bound := t.bound
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testshared/testdata/iface_i/i.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package iface_i
    
    type I interface {
    	M()
    }
    
    type T struct {
    }
    
    func (t *T) M() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 263 bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/decls1.go

    	t21 int = a /* ERRORx `cannot use .* variable declaration` */
    )
    
    // Various more complex expressions
    var (
    	u1 = x /* ERROR "not an interface" */ .(int)
    	u2 = iface.([]int)
    	u3 = iface.(a /* ERROR "not a type" */ )
    	u4, ok = iface.(int)
    	u5, ok2, ok3 = iface /* ERROR "assignment mismatch" */ .(int)
    )
    
    // Constant expression initializations
    var (
    	v1 = 1 /* ERROR "mismatched types untyped int and untyped string" */ + "foo"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. test/fixedbugs/bug514.go

    	*myInt
    }
    
    var val = 1234
    
    var valNotInHeap = notInHeap{i: val}
    
    func main() {
    	i := val
    	check(i)
    	mi := myInt{f: &valNotInHeap}
    	check(mi.Get())
    	ifv := iface(mi)
    	check(ifv.Get())
    	ifv = iface(&mi)
    	check(ifv.Get())
    	em := embed{&mi}
    	check(em.Get())
    	ifv = em
    	check(ifv.Get())
    	ifv = &em
    	check(ifv.Get())
    }
    
    func check(v int) {
    	if v != val {
    		panic(v)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 15:27:18 UTC 2022
    - 782 bytes
    - Viewed (0)
Back to top