嵌套结构体

结构体(记录)

type Point struct {
    x, y int
}

type Size struct {
    width, height int
}

type Rect struct {
    point Point
    size  Size
}

var rect = Rect{
    Point{3, 4},
    Size{10, 12},
}