blog.davidvassallo.me
Lessons Learned: GoLang GORM – filtering associations
The problem Given the following code: type User struct { gorm.Model Username string Orders []Order } type Order struct { gorm.Model UserID uint Foobar string } The above Golang code defines a &#822…