Firestoremap[string]interface{}在获取数据时返回。如何呈现“详细信息”值?
user:{
fname:"john",
lname:"con",
detail:{
address:"Delhi, India",
mob:"0000000009"
}
}
sn := snap.Data()
var bt []byte
for _, val := range sn {
for _, v := range val {
log.Println("value ", v)
}
}
慕丝7291255
慕妹3242003
相关分类