diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 11:39:54 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:03:39 +0800 |
commit | 90ce7b1faf976d76329a8c02008cd84c78a753f5 (patch) | |
tree | 9374618661e2521fec73ab9fc6f1f0f8f68f0c2b /http_handle_repo_index.go | |
parent | Remove underscores from Go code, pt 3 (diff) | |
download | forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.tar.gz forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.tar.zst forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.zip |
Remove underscores from Go code, pt 4
Diffstat (limited to 'http_handle_repo_index.go')
-rw-r--r-- | http_handle_repo_index.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go index b38863c..e274867 100644 --- a/http_handle_repo_index.go +++ b/http_handle_repo_index.go @@ -13,7 +13,7 @@ import ( "github.com/go-git/go-git/v5/plumbing/storer" ) -func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string]any) { +func httpHandleRepoIndex(w http.ResponseWriter, r *http.Request, params map[string]any) { var repo *git.Repository var repo_name string var group_path []string @@ -62,13 +62,13 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string } params["files"] = makeDisplayTree(tree) - params["readme_filename"], params["readme"] = render_readme_at_tree(tree) + params["readme_filename"], params["readme"] = renderReadmeAtTree(tree) no_ref: - params["http_clone_url"] = generate_http_remote_url(group_path, repo_name) - params["ssh_clone_url"] = generate_ssh_remote_url(group_path, repo_name) + params["http_clone_url"] = genHTTPRemoteURL(group_path, repo_name) + params["ssh_clone_url"] = genSSHRemoteURL(group_path, repo_name) params["notes"] = notes - render_template(w, "repo_index", params) + renderTemplate(w, "repo_index", params) } |