Limit the number of records to be returned by this query.
(limit int)
| 36 | |
| 37 | // Limit the number of records to be returned by this query. |
| 38 | func (tq *TaskQuery) Limit(limit int) *TaskQuery { |
| 39 | tq.ctx.Limit = &limit |
| 40 | return tq |
| 41 | } |
| 42 | |
| 43 | // Offset to start from. |
| 44 | func (tq *TaskQuery) Offset(offset int) *TaskQuery { |