SetTotal update the total records.
(total int)
| 72 | |
| 73 | // SetTotal update the total records. |
| 74 | func (p *Pagination) SetTotal(total int) { |
| 75 | p.Total = total |
| 76 | p.normalize() |
| 77 | } |
| 78 | |
| 79 | // Limit returns the page size. |
| 80 | // Intend to be used in SQL statements. |
no test coverage detected