Hello, everyone. I use the ginweb framework as a service and use mgo to connect to mongo,. There is a timestamp in my database that I wrote when I created statuct user: CreatedTime float64 bson:created_time here I tried time.Time,int, float64, but the...
similar to GORM, execute some functions before and after executing the query by registering them db.Callback().Create().Before("gorm:create").Register("update_created_at", updateCreated) db.Callback().Create().After("gorm:creat...