remove / prefix from repo name

このコミットが含まれているのは:
Arya Kiran 2023-03-07 21:39:07 +05:30
コミット a86aaf0878
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 842D12BDA50DF120
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -153,7 +153,7 @@ func HandleUser(c *fiber.Ctx) error {
e.ForEach("div.pinned-item-list-item-content", func(i int, el *colly.HTMLElement) {
var MainRepo RepoList
MainRepo = RepoList{} // Clear data if old data is present
MainRepo.Name = el.ChildAttr("div.width-full a", "href")
MainRepo.Name = strings.TrimPrefix(el.ChildAttr("div.width-full a", "href"), "/")
MainRepo.Type = el.ChildText("div.width-full span.Label")
MainRepo.Desc = el.ChildText("p.pinned-item-desc")
MainRepo.Lang = el.ChildText("p.color-fg-muted span[itemprop*='programmingLanguage']")