Database structure I want to retrive all the data stored in this database using golang
{
"-KaMY9JKmgyRWVApfcXW" : {
"EmailId" : "aaa@gmail.com",
"FirstName" : "abc",
"LastName" : "xyz",
"UserType" : "user"
}
}
v := map[string]YourStruct{}
err := dB.Child("YourChild").Value(&v)
if err != nil {
log.Fatal(err)
}
fmt.Println("%s
", v)
Where YourStruct{} is the struct which you use for fetching values. YourChild is the child name of your above code.