Signed-off-by: dusk y.bera003.06@protonmail.com
Monorepo for Tangled โ https://tangled.org
appview: improve pagination.Page usage #519
closed
opened by
expand 1 commit
hide 1 commit
appview: improve pagination.Page usage
Signed-off-by: dusk <y.bera003.06@protonmail.com>
expand 1 commit
hide 1 commit
appview: improve pagination API
Signed-off-by: dusk <y.bera003.06@protonmail.com>
expand 1 commit
hide 1 commit
appview: improve pagination API
Signed-off-by: dusk <y.bera003.06@protonmail.com>
this helper is quite strange. can we use a slightly better API? the page size does not belong in the
FirstPagemethod (although i understand it was previously hardcoded here).we can do something like
p := NewPagination(WithSize(N), WithOffset(0), WithTotal(...))and havep.FirstPage()perhaps.