github.com/traefik/yaegi@v0.15.1/_test/type9.go (about) 1 package main 2 3 import "fmt" 4 5 type Hello struct { 6 Goodbye GoodbyeProvider 7 } 8 9 func main() { 10 a := &Hello{} 11 12 fmt.Println(a) 13 } 14 15 type GoodbyeProvider func(message string) string 16 17 // Output: 18 // &{<nil>}