github.com/switchupcb/yaegi@v0.10.2/_test/interface35.go (about) 1 package main 2 3 import "fmt" 4 5 type T struct { 6 I interface{} 7 } 8 9 func main() { 10 t := T{"test"} 11 fmt.Println(t) 12 } 13 14 // Output: 15 // {test}