github.com/cnboonhan/delve@v0.0.0-20230908061759-363f2388c2fb/_fixtures/reflecttypefncall.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"reflect"
     6  )
     7  
     8  func reflectFunc(value reflect.Value) {
     9  	fmt.Printf("%s\n", value.Type().Name())
    10  }
    11  
    12  func main() {
    13  	i := 2
    14  	val := reflect.ValueOf(i)
    15  	reflectFunc(val)
    16  }