-3
type A struct {
Id uint32 `json:"id"`
}
type B struct {
A
Title string `json:"title"`
}
type C struct {
Id uint32 `json:"id"`
Name string `json:"name"`
Arrays []interface{} `json:"arrays"`
}
這是編組接口數組的正確方法嗎?Marshaling []中的接口{}
看看struct標籤。這就是問題所在 –