Offset returns the size of skipped items of current page. Intend to be used in SQL statements.
()
| 86 | // Offset returns the size of skipped items of current page. |
| 87 | // Intend to be used in SQL statements. |
| 88 | func (p *Pagination) Offset() int { |
| 89 | p.normalize() |
| 90 | return (p.Page - 1) * p.Size |
| 91 | } |
no test coverage detected