github.com/switchupcb/yaegi@v0.10.2/_test/method21.go (about) 1 package main 2 3 import ( 4 "fmt" 5 ) 6 7 type Hello struct{} 8 9 func (*Hello) Hi() string { 10 panic("implement me") 11 } 12 13 func main() { 14 fmt.Println(&Hello{}) 15 } 16 17 // Output: 18 // &{}