Documentation
¶
Index ¶
- Variables
- func Check(githubURL string) string
- func DownloadHTML(url string) (string, error)
- func FetchAllLinks() ([][]string, error)
- func FindGitRepository(homepageURL string, links []string, packageName string, attempts int, ...) string
- func FindLinksInHTML(url string, htmlContent string, depth int) ([]string, error)
- func Home2git(flagConfigPath string, outputCSV string, url string)
- func InvokeModel(prompt string, attempts int, url string) string
- func ProcessHomepage(packageName string, links []string, homepageURL string, url string) string
- type GitLink
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var PROMPT = map[string]string{
"home2git_link": "Given the list of repository links [%s] and the homepage URL '%s', select the most likely repository link that matches the homepage. If a direct match is found, return the URL in the format 'URL is: [matched_url]'. If no direct match is found, check other repositories on GitHub, GitLab, or Gitee. If a related repository exists, respond with 'URL is: [url]'. If no relevant repository can be identified, respond with 'does not exist'.",
"home2git_nolink": "Check if there is a git repository for %s hosted on platforms like GitHub, GitLab, or Gitee. If it exists, respond in the format 'URL is: [url]'. If no repository exists, respond with 'does not exist'.",
}
Functions ¶
func DownloadHTML ¶
func FetchAllLinks ¶
func FindGitRepository ¶
func FindLinksInHTML ¶
Types ¶
type GitLink ¶
func CheckIfGitLink ¶
Click to show internal directories.
Click to hide internal directories.