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
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -316,6 +316,25 @@ for {
316
316
}
317
317
```
318
318
319
+
#### Iterators (**experimental**)
320
+
321
+
Go v1.23 introduces the new `iter` package.
322
+
323
+
With the `enrichman/gh-iter` package, it is possible to create iterators for `go-github`. The iterator will handle pagination for you, looping through all the available results.
324
+
325
+
```go
326
+
client:= github.NewClient(nil)
327
+
varallRepos []*github.Repository
328
+
329
+
// create an iterator and start looping through all the results
For complete usage of `enrichman/gh-iter`, see the full [package docs](https://github.com/enrichman/gh-iter).
337
+
319
338
### Webhooks ###
320
339
321
340
`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