diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-18 20:45:22 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-18 20:45:22 +0800 |
commit | 18706a6e8377d0e0061b3d29562287d718b70f36 (patch) | |
tree | 01a7ff7ff044a6d6e83ad4124479937cd7cba948 /http_handle_index.go | |
parent | gofumpt (diff) | |
download | forge-18706a6e8377d0e0061b3d29562287d718b70f36.tar.gz forge-18706a6e8377d0e0061b3d29562287d718b70f36.tar.zst forge-18706a6e8377d0e0061b3d29562287d718b70f36.zip |
Remove underscores from Go code, pt 2
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 144e9ab..40bea7c 100644 --- a/http_handle_index.go +++ b/http_handle_index.go @@ -12,9 +12,9 @@ import ( func handle_index(w http.ResponseWriter, r *http.Request, params map[string]any) { var err error - var groups []name_desc_t + var groups []nameDesc - groups, err = query_name_desc_list(r.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL") + groups, err = queryNameDesc(r.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL") if err != nil { http.Error(w, "Error querying groups: "+err.Error(), http.StatusInternalServerError) return |