I have a lot of different tables (60) with different structures. I don't want write create() / read() methods for all. The best solution for me is using interface. But GORM dont want to work correct with interface
var b = model.SomeTable{}
// var b = model.factory(some_name)
func(in interface{}) {
err = postgres.DB.First(&in).Error
if err != nil {
panic(err)
}
}(b)
(unsupported destination, should be slice or struct)