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_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_index.go')
-rw-r--r-- | http_handle_index.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_index.go b/http_handle_index.go index 40bea7c..2fc99a6 100644 --- a/http_handle_index.go +++ b/http_handle_index.go @@ -10,7 +10,7 @@ import ( "github.com/dustin/go-humanize" ) -func handle_index(w http.ResponseWriter, r *http.Request, params map[string]any) { +func httpHandleIndex(w http.ResponseWriter, r *http.Request, params map[string]any) { var err error var groups []nameDesc @@ -25,5 +25,5 @@ func handle_index(w http.ResponseWriter, r *http.Request, params map[string]any) memstats := runtime.MemStats{} runtime.ReadMemStats(&memstats) params["mem"] = humanize.IBytes(memstats.Alloc) - render_template(w, "index", params) + renderTemplate(w, "index", params) } |