I am using firego to do operations on the firebase. I am unable to retrieve the auto generated unique ID after a successful push. I used the fllowing code:
adminData, err := dB.Child("Admins").Push(m)
if err != nil {
log.Println(err)
}
log.Println("Unique ID: ", adminData)
and it print:
https://myApp.firebaseio.com/Admins/-KddtEfpE3ys4cj0mYE-/.json
the variable adminData is of type *Firebase
but I need only -KddtEfpE3ys4cj0mYE-
as type String
How I can do this in Golang using firego?