diff options
author | 2023-05-08 10:24:08 +0530 | |
---|---|---|
committer | 2023-05-07 21:54:08 -0700 | |
commit | eda20020c3391cf0a9aed04af1c349afbac66f90 (patch) | |
tree | 3eb11aceacf2e0681992761ae5f3e567a134a380 /handler.go | |
parent | 83efe3481a5c001ae37116e8a5b0240552fa6c04 (diff) | |
download | sally-eda20020c3391cf0a9aed04af1c349afbac66f90.tar.gz sally-eda20020c3391cf0a9aed04af1c349afbac66f90.tar.zst sally-eda20020c3391cf0a9aed04af1c349afbac66f90.zip |
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>
Diffstat (limited to 'handler.go')
-rw-r--r-- | handler.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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), } |