From eda20020c3391cf0a9aed04af1c349afbac66f90 Mon Sep 17 00:00:00 2001 From: Anurag Bandyopadhyay Date: Mon, 8 May 2023 10:24:08 +0530 Subject: Removing redundant go-source tag (#92) * update: removing redundant go-source tag * fix: removing /.idea and adding dir to gitignore * fix: removing /.idea and removing branch field from from templateData * fix: pkgHndler defaultBranch rem revert * fix: minor typo * fix: removing assertion of template responses * fix: tabs * Update handler_test.go * Update handler_test.go * Update handler_test.go --------- Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com> --- handler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'handler.go') diff --git a/handler.go b/handler.go index 918405e..aa646c6 100644 --- a/handler.go +++ b/handler.go @@ -50,7 +50,7 @@ type indexHandler struct { type packageInfo struct { Desc string // package description - ImportPath string // canonical improt path + ImportPath string // canonical import path GitURL string // URL of the Git repository GodocHome string // documentation home URL } @@ -119,12 +119,10 @@ func (h *packageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { data := struct { Repo string - Branch string CanonicalURL string GodocURL string }{ Repo: h.gitURL, - Branch: h.defaultBranch, CanonicalURL: h.canonicalURL, GodocURL: fmt.Sprintf("https://%s/%s%s", h.godocHost, h.canonicalURL, relPath), } -- cgit v1.2.3