aboutsummaryrefslogtreecommitdiff
path: root/http_handle_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 21:54:45 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 21:54:45 +0800
commita6d7a1e868ed5a155049f83bc688d0f97dacb323 (patch)
treedf3eafec8f6f896a9ae0312519ee97e0a46f0a78 /http_handle_index.go
parentDo not export version (diff)
downloadforge-a6d7a1e868ed5a155049f83bc688d0f97dacb323.tar.gz
forge-a6d7a1e868ed5a155049f83bc688d0f97dacb323.tar.zst
forge-a6d7a1e868ed5a155049f83bc688d0f97dacb323.zip
Unexport some other things
Diffstat (limited to 'http_handle_index.go')
-rw-r--r--http_handle_index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_index.go b/http_handle_index.go
index fd89a86..a519a5a 100644
--- a/http_handle_index.go
+++ b/http_handle_index.go
@@ -14,9 +14,9 @@ import (
// and some global information such as SSH keys.
func (s *Server) httpHandleIndex(writer http.ResponseWriter, request *http.Request, params map[string]any) {
var err error
- var groups []NameDesc
+ var groups []nameDesc
- groups, err = s.QueryNameDesc(request.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL")
+ groups, err = s.queryNameDesc(request.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL")
if err != nil {
errorPage500(writer, params, "Error querying groups: "+err.Error())
return