以下の内容はhttps://www.pospome.work/entry/2017/02/05/164525より取得しました。


Datastore/GO で datastore: flattening nested structs leads to a slice of slices: field xxx

以下のエラーが出た。

datastore: flattening nested structs leads to a slice of slices: field xxx


Datastore は以下のように struct をネストすることができるが、

type A struct {
    B []B
}

type B struct {
    Name string
}


以下のようにネストした struct (今回で言うとB)が slice を持つと、
このエラーになる。

type A struct {
    B []B
}

type B struct {
    Name string
    Score []int //これがダメ
}



以上の内容はhttps://www.pospome.work/entry/2017/02/05/164525より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14