Files
moxa/_test/interface35.go

16 lines
132 B
Go

package main
import "fmt"
type T struct {
I interface{}
}
func main() {
t := T{"test"}
fmt.Println(t)
}
// Output:
// {test}