Replies: 1 comment
-
I think one way I would do this is I would get the pagination information (e.g page number, page size) from the URL query or request payload (probably decode them if needed), then store in the request context so that the next handler can access these information. Some examples: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Considering that response writer and request are the only objects that we can take or pass data, how this example supposed to work?
https://github.com/go-chi/chi/blob/master/_examples/rest/main.go#L252
The function above, to be precise.
Beta Was this translation helpful? Give feedback.
All reactions