{"modulePath":"github.com/KubeRocketCI/gitfusion","version":"v0.8.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Functions\n\n```go\nfunc ScanGitHubList[T any](\n\tfetchPage func(opt github.ListOptions) ([]T, *github.Response, error),\n\topts ...ScanGitHubListOption,\n) xiter.Scan[T]\n```\nScanGitHubList iterates over paginated GitHub API list results, yielding each item. - fetchPage: function that fetches a page of results using github.ListOptions. - opts: optional functional options (e.g., WithPerPage). Returns an iterator (iter.Seq2) yielding each item and any error encountered.\n\n## Types\n\n```go\ntype ScanGitHubListOption func(*github.ListOptions)\n```\nScanGitHubListOption defines a functional option for ScanGitHubList.\n\n```go\nfunc WithPerPage(perPage int) ScanGitHubListOption\n```\nWithPerPage sets the PerPage value for pagination.\n\n","path":"github.com/KubeRocketCI/gitfusion/pkg/github","name":"github","synopsis":"","isRedistributable":true}
