-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"`
}
これは、インターフェイスの配列をマーシャリングする正しい方法ですか?[] interface {} inマーシャリング
structタグを見てください。問題がどこにあるのか –