Files
moxa/_test/struct7.go
2018-09-03 16:44:45 +02:00

16 lines
129 B
Go

package main
type Opt struct {
b bool
}
type T struct {
i int
opt Opt
}
func main() {
a := T{}
println(a.i, a.opt.b)
}