Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Paginate ¶
func Paginate(detail string, perPage int, fn func(listOptions github.ListOptions) (Details, *github.Response, error)) error
Paginate handles pagination according to the google/go-github API. It handles the rate limit error by waiting if it receives one. This allows the caller to handle just the business logic without having to worry about pagination. The details the caller can return control whether the function returns early.
Types ¶
Click to show internal directories.
Click to hide internal directories.