Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("go.mod not found") ErrRateLimited = errors.New("GitHub API rate limit exceeded") )
Functions ¶
This section is empty.
Types ¶
type GitHubFetcher ¶
type GitHubFetcher struct {
// contains filtered or unexported fields
}
GitHubFetcher retrieves go.mod files from GitHub repositories via the GitHub REST API.
func NewGitHubFetcher ¶
func NewGitHubFetcher() (*GitHubFetcher, error)
func (*GitHubFetcher) FetchGoMod ¶
FetchGoMod retrieves the contents of the go.mod file for the given repository. If repo.Path is set, go.mod is looked up under that subdirectory; otherwise, the repository root is used.
Click to show internal directories.
Click to hide internal directories.