github.com/traefik/yaegi@v0.15.1/_test/var8.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "reflect" 6 ) 7 8 type Message struct { 9 Name string 10 } 11 12 var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() 13 14 func main() { 15 fmt.Println(protoMessageType.Kind()) 16 } 17 18 // Output: 19 // struct