www说
它将是指向 的指针book,与 相同&book{1, "Yellow moon"},但规范允许省略类型和&运算符,因为从类型中很明显。var books = []*book { {1, "Yellow moon"}, // This is the same as &book{1, "Yellow moon"}}规范:复合文字:在数组、切片或映射类型的复合文字中T,本身是复合文字的元素或映射键可以省略相应的文字类型,如果它与 的元素或键类型相同T。&T类似地,当元素或键类型为 时,作为复合文字地址的元素或键可以省略*T。[][]Point{{{0, 1}, {1, 2}}} // same as [][]Point{[]Point{Point{0, 1}, Point{1, 2}}}[2]*Point{{1.5, -3.5}, {}} // same as [2]*Point{&Point{1.5, -3.5}, &Point{}}