We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement the Page data structure that contains the functions Next() and Prev(). It also stores the content of request and the page data.
Page
Next()
Prev()
During the implementation, this data structure will be discussed and a consensus must be defined
This data structure must have minimum these fields:
type Page[T any] struct { Elements []*T `json:"elements"` Count int64 `json:"count"` Page uint `json:"page"` PageSize uint `json:"pageSize"` NumPages int64 `json:"totalPages"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` }
And the function signature are:
func (pg *Page[T]) Next() (*Page[T], error) func (pg *Page[T]) Prev() (*Page[T], error)
connection
repository
The text was updated successfully, but these errors were encountered:
gsdenys
No branches or pull requests
Description
Implement the
Page
data structure that contains the functionsNext()
andPrev()
. It also stores the content of request and the page data.This data structure must have minimum these fields:
And the function signature are:
Acceptance Criteria
connection
orrepository
.The text was updated successfully, but these errors were encountered: