Hello,
i have a problem with struct imbricate. i have a structure like that :
“_id” : ObjectId(“5b6982c0fa433a2278b6956d”),
“niveau” : “-1”,
“name” : {
“nom” : “Toto”,
“prenom” : “test”
},
and i defined my struct like :
type Personne struct {
Id bson.ObjectIdbson:"_id"
Niveau stringjson:"niveau" bson:"niveau"
Name struct {
nom stringjson:"nom" bson:"nom"
prenom string
}json:"name" bson:"name"
}
but impossible to get all values … i’m sure that will be resolved by a little thing but i don’t succed