Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ToInterface (0.21 sec)

  1. src/internal/reflectlite/export_test.go

    		return Value{t, unsafe_New(t), fl | flagIndir}
    	}
    	return Value{t, nil, fl}
    }
    
    // ToInterface returns v's current value as an interface{}.
    // It is equivalent to:
    //
    //	var i interface{} = (v's underlying value)
    //
    // It panics if the Value was obtained by accessing
    // unexported struct fields.
    func ToInterface(v Value) (i any) {
    	return valueInterface(v)
    }
    
    type EmbedWithUnexpMeth struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. test/fixedbugs/issue63333.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func f(interface{ m() }) {}
    func g()                 { f(new(T)) } // ERROR "m method is marked 'nointerface'"
    
    type T struct{}
    
    //go:nointerface
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:44:52 UTC 2023
    - 374 bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "nointerface", name: "I", want: "type I int"},
    	{pkgpath: "issue29198", name: "FooServer", gccgoVersion: 7, want: "type FooServer struct{FooServer *FooServer; user string; ctx context.Context}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
Back to top