gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_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}