使用
append()内置
例:
type mytype struct { a, b int}func main() { a := []mytype{mytype{1, 2}, mytype{3, 4}} a = append(a, mytype{5, 6})}有关附加的更多信息,请参考规范。

使用
append()内置
例:
type mytype struct { a, b int}func main() { a := []mytype{mytype{1, 2}, mytype{3, 4}} a = append(a, mytype{5, 6})}有关附加的更多信息,请参考规范。