Signed-off-by: dusk y.bera003.06@protonmail.com
Monorepo for Tangled
tangled.org
appview: improve pagination.Page usage #519
expand 1 commit
hide 1 commit
8ee73a8a
appview: improve pagination.Page usage
Signed-off-by: dusk <y.bera003.06@protonmail.com>
expand 1 commit
hide 1 commit
1af31ddd
appview: improve pagination API
Signed-off-by: dusk <y.bera003.06@protonmail.com>
expand 1 commit
hide 1 commit
93bdc6bc
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.