aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_contrib_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-19 12:19:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-19 12:19:57 +0800
commit9cf817e614a906c54990c74c28d4a6dcf9465731 (patch)
tree6d26a521af68c03f5f883a8ebe16b8842fd0db22 /http_handle_repo_contrib_index.go
parentRemove underscores from Go code, pt 5 (diff)
downloadforge-9cf817e614a906c54990c74c28d4a6dcf9465731.tar.gz
forge-9cf817e614a906c54990c74c28d4a6dcf9465731.tar.zst
forge-9cf817e614a906c54990c74c28d4a6dcf9465731.zip
Remove underscores from Go code, pt 6
Diffstat (limited to 'http_handle_repo_contrib_index.go')
-rw-r--r--http_handle_repo_contrib_index.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http_handle_repo_contrib_index.go b/http_handle_repo_contrib_index.go
index 152c8cd..41c4d18 100644
--- a/http_handle_repo_contrib_index.go
+++ b/http_handle_repo_contrib_index.go
@@ -9,7 +9,7 @@ import (
"github.com/jackc/pgx/v5"
)
-type id_title_status_t struct {
+type idTitleStatus struct {
ID int
Title string
Status string
@@ -17,7 +17,7 @@ type id_title_status_t struct {
func httpHandleRepoContribIndex(w http.ResponseWriter, r *http.Request, params map[string]any) {
var rows pgx.Rows
- var result []id_title_status_t
+ var result []idTitleStatus
var err error
if rows, err = database.Query(r.Context(),
@@ -36,7 +36,7 @@ func httpHandleRepoContribIndex(w http.ResponseWriter, r *http.Request, params m
http.Error(w, "Error scanning merge request: "+err.Error(), http.StatusInternalServerError)
return
}
- result = append(result, id_title_status_t{id, title, status})
+ result = append(result, idTitleStatus{id, title, status})
}
if err = rows.Err(); err != nil {
http.Error(w, "Error ranging over merge requests: "+err.Error(), http.StatusInternalServerError)