Closed maaslalani closed 9 months ago
Adds an OnFirstPage method to use with OnLastPage for better code clarity.
OnFirstPage
OnLastPage
Before:
if g.paginator.OnLastPage() { // ... } else if g.paginator.Page == 0 { // ... }
After:
if g.paginator.OnLastPage() { // ... } else if g.paginator.OnFirstPage() { // ... }
Adds an
OnFirstPage
method to use withOnLastPage
for better code clarity.Before:
After: