github.com/traefik/yaegi@v0.15.1/_test/recurse0.go (about) 1 package main 2 3 import "fmt" 4 5 type T struct { 6 a []T 7 b []*T 8 c map[string]T 9 d map[string]*T 10 e chan T 11 f chan *T 12 h *T 13 i func(T) T 14 j func(*T) *T 15 U 16 } 17 18 type U struct { 19 k []T 20 l []*T 21 m map[string]T 22 n map[string]*T 23 o chan T 24 p chan *T 25 q *T 26 r func(T) T 27 s func(*T) *T 28 } 29 30 func main() { 31 t := T{} 32 u := U{} 33 fmt.Println(t) 34 fmt.Println(u) 35 } 36 37 // Output: 38 // {[] [] map[] map[] <nil> <nil> <nil> <nil> <nil> {[] [] map[] map[] <nil> <nil> <nil> <nil> <nil>}} 39 // {[] [] map[] map[] <nil> <nil> <nil> <nil> <nil>}