I have a database query that returns an extra calculated column along with all the mapped struct columns. I want to map it back into the struct while also being able to extract the calculated column which is not part of the struct. I can get everything by using the xorm QueryInterface()
function, but I can't seem to find how I can convert the resulting map[string]interface{}
back into the struct...
Any idea? I saw gorm has db.Model(...).Create(...)
but can't seem to find the equivalent in xorm.