我在設計我的模型時遇到了一些問題,因為我的模型包含一個切片并且我收到一個錯誤flattening nested structs leads to a slice of slices設計這樣的東西的最佳方法是什么我更喜歡改變我的設計type Inner2 struct { Y float64 inner3 []Inner3}type Inner3 struct { Z bool}type Outer struct { A int16 I []Inner2}
- 2 回答
- 0 關注
- 165 瀏覽
添加回答
舉報
0/150
提交
取消