Query
err := app.DB.First(&live, 1).Error
I want to convert live to dict, how to do it ?
You can use reflection to get do this. Check this post.
Alternatively, you can use structs package for conversion with ease. Take a look at the struct methods section.