You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -347,6 +347,13 @@ for repo := range repos.All() {
347
347
348
348
For complete usage of `enrichman/gh-iter`, see the full [package docs](https://github.com/enrichman/gh-iter).
349
349
350
+
#### Middleware ####
351
+
352
+
You can use [gofri/go-github-pagination](https://github.com/gofri/go-github-pagination) to handle
353
+
pagination for you. It supports both sync and async modes, as well as customizations.
354
+
By default, the middleware automatically paginates through all pages, aggregates results, and returns them as an array.
355
+
See `example/ratelimit/main.go` for usage.
356
+
350
357
### Webhooks ###
351
358
352
359
`go-github` provides structs for almost all [GitHub webhook events][] as well as functions to validate them and unmarshal JSON payloads from `http.Request` structs.
0 commit comments