Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for NoInterface (0.16 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. src/internal/reflectlite/tostring_test.go

    	"reflect"
    	"strconv"
    )
    
    // valueToString returns a textual representation of the reflection value val.
    // For debugging only.
    func valueToString(v Value) string {
    	return valueToStringImpl(reflect.ValueOf(ToInterface(v)))
    }
    
    func valueToStringImpl(val reflect.Value) string {
    	var str string
    	if !val.IsValid() {
    		return "<zero Value>"
    	}
    	typ := val.Type()
    	switch val.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/out.go

    		// Not supported.
    	case *ast.FuncType:
    		return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("void*")}
    	case *ast.InterfaceType:
    		return &Type{Size: 2 * p.PtrSize, Align: p.PtrSize, C: c("GoInterface")}
    	case *ast.MapType:
    		return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("GoMap")}
    	case *ast.ChanType:
    		return &Type{Size: p.PtrSize, Align: p.PtrSize, C: c("GoChan")}
    	case *ast.Ident:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top