X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/cmd/link/internal/ld/testdata/deadcode
opt
/
golang
/
1.19.4
/
src
/
cmd
/
link
/
internal
/
ld
/
testdata
/
deadcode
/
📁
..
📄
ifacemethod.go
(765 B)
📄
ifacemethod2.go
(488 B)
📄
ifacemethod3.go
(615 B)
📄
ifacemethod4.go
(513 B)
📄
reflectcall.go
(474 B)
📄
typedesc.go
(306 B)
Editing: reflectcall.go
// Copyright 2020 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. // This example uses reflect.Value.Call, but not // reflect.{Value,Type}.Method. This should not // need to bring all methods live. package main import "reflect" func f() { println("call") } type T int func (T) M() {} func main() { v := reflect.ValueOf(f) v.Call(nil) i := interface{}(T(1)) println(i) }
Upload File
Create Folder