func main() { var ( engine *xorm.Engine ) engine = SetupDb() engine.Insert(&User{ Id: 1, FirstName: "John", LastName: "Doe", Age: 24, }) engine.Insert(&User{ Id: 2, FirstName: "Jane", LastName: "Doe", Age: 52, }) engine.Insert(&User{ Id: 3, FirstName: "Joe", LastName: "Shmoe", Age: 10, }) //START CODE OMIT var users []User engine.Where("last_name = ? OR age < ?", "Doe", "12").OrderBy("age").Limit(2).Find(&users) fmt.Printf("%+v\n", users) //END CODE OMIT }